Sorry if this has been asked, but Google has failed me and I haven't been
able to find an answer.
With a source one can declare array so that if file exist puppet will pull
it out first, if not move to the next file in this fashion:
source => ["puppet:///conf/httpd_$hostname.conf",
"puppet:///conf/httpd.conf",
],
To the best of my knowledge one can't do that with a Template (at
least as of 0.24, I am hoping this has changed).
What is the recommended way of dealing with this?
I do know that I can have an "if" statement within a class/module to
go like this:
if $hostname {
content =...
However that isn't as clean as being able to do this from within the
same array as "source". That way instead of keep having to add
"if/else" I can simply add a file as needed.
Thank you!
--
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.