Re: [Puppet Users] dependencies

James Turnbull
Thu, 08 Apr 2010 23:33:50 -0000

On 9 April 2010 08:35, Christopher Johnston <chjohnst@gmail.com>
wrote:
> What is the best way to map out all my depencies (is there a way to chart
> them somehow?)  I am finding no matter how many places I put notifies,
> requires, etc.  I still end up having to two 2-3 runs of puppet.  Very
> frustrating.
>

From the FAQ (which is a little in flux at the moment):

How do I use Puppet’s graphing support?

Puppet has graphing support capable of creating graph files of your
Puppet client configurations. The graphs are created by and on the
client, so you must enable the graph option. This will create files in
dot format in the client’s graphdir directory; these files are text
files and need to be interpreted by another application to get turned
into images. The easiest way to do this is to use OmniGraffle, since
it automatically converts them to attractive graphs, but it only runs
on OS X. You can also install graphviz, which comes with the dot
application, which you can use to turn the text files into images:

dot -Tpng /var/puppet/state/graphs/resources.dot -o /tmp/configuration.png

Regards

James Turnbull

--
Author of:
* Pro Linux System Administration (http://tinyurl.com/linuxadmin)
* Pulling Strings with Puppet (http://tinyurl.com/pupbook)
* Pro Nagios 2.0 (http://tinyurl.com/pronagios)
* Hardening Linux (http://tinyurl.com/hardeninglinux)