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 am writing an application to do 
this, so it can not be done by hand.  There are other sys-admins that have 
previously created node definitions for each node... that piece is out of my 
control.

Here is the pseudo code of what I would ideally like to do:

require 'puppet'

node = Puppet::Node.find_by_name("puppet.example.com") 
node.add_to_node_definition("
include \"my yum repo & my rpm\"")

Or is there something within puppet that can *at least* return the file that 
defines a particular node??

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/WHE90t7SlqkJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to