Ask Your Question

Revision history [back]

If you have your Puppet manifest stored in a module, then you just need to put that module on your client, make sure any dependencies are also on the client (like stdlib, and other modules you might depend on), and then run the module with puppet apply --modulepath=/path/to/your/modules run.pp where run.pp is a simple file that looks something like this.

include your-module

Puppet does support pre-compiling puppet code on the master, and then running that code on clients, but there's a critical flaw in that the files/templates aren't included in the output, so when the code runs on the client, it will fail unless you move your files/templates there manually.

I personally like using git to pull my modules down to clients so that they can be directly run via puppet apply. Is this generally what you were looking for?

If you have your Puppet manifest stored in a module, then you just need to put that module on your client, make sure any dependencies are also on the client (like stdlib, and other modules you might depend on), and then run the module with puppet apply --modulepath=/path/to/your/modules run.pp where run.pp is a simple file that looks something like this.

include your-module

Puppet does support pre-compiling puppet code on the master, and then running that code on clients, but there's a critical flaw in that the files/templates aren't included in the output, so when the code runs on the client, it will fail unless you move your files/templates there manually.

I personally like using git to pull my modules down to clients so that they can be directly run via puppet apply. Here's what the process might look like.

  1. Install the Puppet client on your server
  2. Put your modules in /etc/puppet/modules
  3. Create /tmp/run.pp with the content above
  4. Run puppet apply --modulepath=/etc/puppet/modules /tmp/run.pp
  5. Remove /tmp/run.pp, /etc/puppet/modules, and then uninstall Puppet

Is this generally what you were looking for?