Hi all,
I'm trying to figure out if I can serve a certain template that matches
a hostname or serve the default like I could if this was just a file.
Works:
file { '/etc/yum.conf':
ensure => file,
source => ["puppet://puppet/yum/yum.conf.$hostname",
"puppet://puppet/yum/yum.conf"],
}
Trying to figure out:
file {'/etc/yum.conf':
ensure => file,
content => ["template("yum/yum.conf.$hostname.erb"),
" template("yum/yum.conf.erb")],
}
There is this issue http://projects.puppetlabs.com/issues/5158 that
seems related but I can't figure out if this is possible.
Thanks!
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.