Does anyone know if it's possible to run Puppet as if it's running with a Master, but using a locally created node.pp manifest?
I'm looking into doing some unit tests on applications that are installed by Puppet. To do this, I'm trying to use a test VM server which I'll deploy applications onto. I figure that the easiest way is probably to synthesise a node.pp manifest file and tell Puppet to use it. The problem is, when I try to do this, Puppet seems to want to work entirely locally and forgets that it's got a Master. To elaborate on how I think this would work.. 1) On the client machine, I generate a node.pp style manifest file, which pretty much just includes a bunch of modules, some with a few parameters 2) On the client I run "puppet magic_apply /my/dir/fake_node.pp" 3) Under the covers, the client machine sends the fake_node.pp file to the Master, and says "use this instead of /etc/puppet/manifests/nodes/clientbox.pp" 4) The Puppet Master build the catalogue and hands it to the client which goes ahead and does a regular Puppet run, installing modules and configs from templates onto the box Is this possible in any way? So far the best I've come up with is to scp my synthesised node.pp onto the Puppet Master box. This seems awfully cheesy though, so I'd really rather not have to do that! Better ideas are most welcome :-) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.