[Puppet Users] Re: dynamically edit node definition

2011-09-18 Thread Sav
To add to my previous post, here is the big picture: I am given a system, where puppet is already set up. Lets say a new rpm is created. I need to install that rpm on a specific host by putting that rpm in a yum repository, and creating a pupmod that installs that rpm on a particular node. I

[Puppet Users] Re: dynamically edit node definition

2011-09-18 Thread Sav
To add to my previous post, here is the big picture: I am given a system, where puppet is already set up. Lets say a new rpm is created. I need to install that rpm on a specific host by putting that rpm in a yum repository, and creating a pupmod that installs that rpm on a particular node. I

[Puppet Users] Re: dynamically edit node definition

2011-09-18 Thread Sav
Import nodes/* is already being done. My problem is, I am not in control of any node definitions. I am completely ignorant as to what nodes have, or have not been defined (In most situations, the nodes have already been defined). Given a hostname, I have to (programmatic-ly) find where that

Re: [Puppet Users] dynamically edit node definition

2011-09-17 Thread Sav
I looked into that, but I am not in control of all node definitions across the system: "You can optionally combine an ENC with regular node definitions in site.pp. This works on the “I hope you brought enough for everybody” rule: things will work correctly if you have an ENC and no node definit

[Puppet Users] dynamically edit node definition

2011-09-17 Thread Sav
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 th

[Puppet Users] How to dynamically edit node definitions

2011-09-17 Thread Sav
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' ... {", a