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?
--
Peter L. Berghold
Owner, Shark River Technical Solutions LLC
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
This is exactly how I handle things. -- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
I do check_mk configuration and Netbackup work via this method. On Mon, Mar 5, 2012 at 1:57 PM, windowsrefund <windowsrefund@gmail.com>wrote:> > This is exactly how I handle things. > > -- > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- 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+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On Mar 5, 3:33 pm, Peter Berghold <salty.cowd...@gmail.com> 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 puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.