On 17 September 2011 16:42, Sav <[email protected]> wrote: > Is it possible to dynamically edit a node definition? Basically, given a > node, add or remove from it's node definition on the fly. > > Right now, I am doing a find on the /etc/puppet/manifests/nodes directory > on all ".pp" files, grepping for "node hostname { ", and using a sed command > to edit the node definition. Is there a more straightforward way to do > this? Can it be done in memory? Or at least, is there a better way to > return the .pp file that contains a particular node definition? > > Thanks! >
You should probably write an external node classifier (ENC) for this: http://docs.puppetlabs.com/guides/external_nodes.html -- 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.
