Can someone tell me why this works:

file {
        "/etc/sudoers":
            source => [
                "puppet://$server/security/etc/sudoers:${fqdn}",
                "puppet://$server/security/etc/sudoers"
            ],
            owner => root, group => root, mode => 440,
}

but, this does not:

file {
        "/opt/jboss/current/server/$name/conf/jboss-log4j.xml":
            template => [

template("elements/jboss_inst/conf/jboss-log4j.xml.${fqdn}.erb"),
                template("elements/jboss_inst/conf/jboss-log4j.xml.erb")
            ];
}

For the template, puppet complains that the first file does not exist,
but for the source one, if the first file does not exist, it will
quietly fall through to the second one. Is there another way to do
this with templates?

Doug

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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