Hello All,
 I recently found an excellent feature that I never knew about. I
never knew that you could source an array of files and then have
puppet figure out which one to use (like a case statement, within the
source directive.

 An example of this would be:

file { "/etc/sysctl.conf":
 source => [
   "puppet://server/sysctl/sysctl.conf.$hostname",
   "puppet://server/sysctl/sysctl.conf.$tuningpolicy",
   "puppet://server/sysctl/sysctl.conf",
  ]
 }

Is it possible to do the same thing with templates?
 An example of what I want to do is:

file { "/etc/sysctl.conf":
 content => [
   template("sysctl.conf.$hostname.erb"),
   template("sysctl.conf.$tuningpolicy.erb"),
   template("sysctl.conf.erb"),
  ]
 }

Thank you very much for the help.
-Tom
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to