----- Original Message -----
> From: "Ralph Bolton" <ra...@coofercat.com>
> To: puppet-users@googlegroups.com
> Sent: Tuesday, February 12, 2013 10:06:51 AM
> Subject: [Puppet Users] Run Puppet Against Master with Local node.pp Manifest?
> 
> 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

If this was possible it would be a major security concern :)

Best is to copy the code onto the machine and use puppet apply to run it all
locally, then you can make custom node files.

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


Reply via email to