I would like to find out a way... given a host (or node), to
dynamically add or remove from that node''s definition. Does anybody
know if this is possible?
I am currently running a find statement in the /etc/puppet/ directory
for all files that end in ".pp", grepping for "node
''hostname'' ... {",
and using a sed command to insert include statements. Is there a more
simple way to do this?
If not, is there at least an easier way to find the ".pp" file where a
particular node is defined?
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+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Adrien Thebo
2011-Sep-19 17:33 UTC
Re: [Puppet Users] How to dynamically edit node definitions
Perhaps you want to use an external node classifier? It can give you the dynamic definition of nodes per run. See http://docs.puppetlabs.com/guides/external_nodes.html On Fri, Sep 16, 2011 at 1:00 PM, Sav <savannah.durbin@gmail.com> wrote:> I would like to find out a way... given a host (or node), to > dynamically add or remove from that node''s definition. Does anybody > know if this is possible? > > I am currently running a find statement in the /etc/puppet/ directory > for all files that end in ".pp", grepping for "node ''hostname'' ... {", > and using a sed command to insert include statements. Is there a more > simple way to do this? > > If not, is there at least an easier way to find the ".pp" file where a > particular node is defined? > > 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+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- Adrien Thebo adrien@puppetlabs.com -- 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.