----- Darren Chamberlain <[email protected]> wrote:
> 
> The file() function returns the content of the first file that
> exists, so you can use it with inline_template():
> 
>     file {
>         "/etc/snmpd.conf":
>             ensure => "present",
>             content => inline_template(
>                 file(
>                     "puppet:///modules/snmp/snmpd.conf.$::hostname.erb",
>                     "puppet:///modules/snmp/snmpd.conf.erb",
>                 )
>             ),
>   }
> 

That is a wonderful tip, Darren.

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.

Reply via email to