On Jul 23, 2009, at 1:58 PM, TomTom wrote:
> 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"), > ] > } Directly this feature is not available. Here is an example I've used for exim that may suit your needs. content => $directadmin_exim ? { 'antispam' => template('directadmin/exim/ exim.antispam.conf.erb'), 'local' => template('directadmin/exim/ exim.local.conf.erb'), 'custom' => template("directadmin/exim/hosts/exim.$ {hostname}.conf.erb"), default => template('directadmin/exim/ exim.default.conf.erb'), }, -L -- Larry Ludwig Reductive Labs --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---