Thanks Wolf,
This works perfectly.
Cheers,
Sam
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/oayiKvapyZUJ.
To post to this group, send email to puppet-
Here's what I've been doing, fwiw:
file { 'nsswitch.conf':
path => '/etc/nsswitch.conf',
content => inline_template(
file(
"/etc/puppet/modules/dist/ldapclient/templates/etc/nsswitch.conf.$hostname.erb",
"/etc/puppet/modules/dist/ldapclient/templates/etc/nsswitch.conf.$device
On Wed, Aug 31, 2011 at 10:48 PM, Sam Morrison wrote:
> Hi,
>
> In a file resource I want to be able to specify multiple template contents.
> If the 1st template doesn't exist use the 2nd listed and so on. Much like
> how the source attribute works.
> Basically this:
>
> file { "/tmp/somefile.t
Hi,
In a file resource I want to be able to specify multiple template contents.
If the 1st template doesn't exist use the 2nd listed and so on. Much like
how the source attribute works.
Basically this:
file { "/tmp/somefile.txt":
ensure => present,
content => [