Pete Emerson wrote: > So on the puppetmaster server I'd need to generate a puppet.conf to > create a [section] for each version I need to run. > **Since iterating over arrays doesn't appear to be allowed ** [emphasis mine] > I guess I'd need to look into > writing my own function, or simply externalize this to a script that I'd > write.
This is soooo wrong. Sorry, but puppet allows you very easily to process arrays with defines: define puppet::config_section() { include puppet::config_section_base concatenated_file_part { $name: dir => "/var/lib/puppet/modules/puppet/config.d", content => template("puppet/config_section.erb"); } } puppet::config_section{ [ "production", "development", "testing", "blah" ]: } Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---