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??