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 => [
                       template("somefile-$fqdn.erb"),
                       template("somefile.erb"),
                       ]
    mode    => 644,
    owner   => root,
    group   => root,
}

Which doesn't work. Is there a way to do this in puppet?

Thanks,
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/-/mVbZoOdhVp8J.
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