On Mar 5, 3:33 pm, Peter Berghold <[email protected]> wrote:
> Folks,
>
> I haven't tried this yet, but I certainly intend to.
>
> If I set up an exported file definition such that:
>
> @@file{'munin-node-file':
> content=> template('blah'),
> path => "/etc/munin.d/${hostname}.cfg"
>
> }
>
> and then
>
> File << 'munin-node-file' >>
>
> Do I understand correctly that I would see multiple files created for the
> path I've given? Or am I reaching?
I was under the impression that resource titles needed to be unique
even among collected exported resources. With others claiming to do
exactly as you describe, I'm now questioning that belief. Even if
it's not strictly necessary, however, I still think it's safer and at
least as clear to use
@@file{ "munin-node-file-${hostname}":
content=> template('blah'),
path => "/etc/munin.d/${hostname}.cfg",
tag => 'munin-node-file'
}
and then
File << tag == 'munin-node-file' >>
John
--
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.