----- Original Message -----
> From: "Ralph Bolton" <
ra...@coofercat.com>
> To:
puppet...@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