O'Reilly logo

Puppet 3 Cookbook by John Arundel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Generating manifests with other tools

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.

Getting ready...

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

How to do it...

These steps will show you how to run Blueprint:

  1. Run the following commands:
    ubuntu@cookbook:~/puppet$ cd puppet/modules/
    ubuntu@cookbook:~/puppet/modules$ sudo blueprint create -P bp_test

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required