----- Darren Chamberlain <dar...@boston.com> 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 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