Sav, Maybe I'm confused about what you are trying to do, but why not just do "import nodes/*" from site.pp instead of using find commands? The only catch is that if you add or remove a node, you have to do a "touch" command on site.pp to get puppet to re-read the import statement and pick up the new (or removed) files.
On Sep 17, 11:42 am, 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 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.
