If you want to quickly capture the complete configuration of a running system as a Puppet manifest, there are a couple of tools available to help. In this example we'll look at Blueprint and Pysa, both designed to examine a machine and dump its state as Puppet code.
Here's what you need to do to prepare your system for using Blueprint.
Run the following commands to install Blueprint:
ubuntu@cookbook:~/puppet$ sudo apt-get install python-pip ubuntu@cookbook:~/puppet$ sudo pip install blueprint
These steps will show you how to run Blueprint:
ubuntu@cookbook:~/puppet$ cd puppet/modules/ ubuntu@cookbook:~/puppet/modules$ sudo blueprint create -P bp_test