Schema of dependency tree?

126 views
Skip to first unread message

Jakov Sosic

unread,
Jul 25, 2012, 8:01:21 PM7/25/12
to puppet...@googlegroups.com
Hi

Is it possible to somehow list or view dependency tree of the classes,
packages, services, and other resources for some host?

I would like to polish my setup so that the first puppet finishes
everything. Right now I have problems that I have to have 2 or 3
conncurent runs after installation of blank machine to get it up to
working order. Obviously I didn't set up all the dependencies between
resources correctly. It would be cool if I could get some kind of output
like pstree, or even gui graphs if it's possible.


Thank you.


--
Jakov Sosic
www.srce.unizg.hr

James A. Peltier

unread,
Jul 25, 2012, 8:04:37 PM7/25/12
to puppet...@googlegroups.com
Add graph = true to the agent section on your puppet client. Then look in /var/lib/puppet/state/graphs. You can then use dot to generate images of the dependencies.

--
James A. Peltier
Manager, IT Services - Research Computing Group
Simon Fraser University - Burnaby Campus
Phone : 778-782-6573
Fax : 778-782-3045
E-Mail : jpel...@sfu.ca
Website : http://www.sfu.ca/itservices
http://blogs.sfu.ca/people/jpeltier

Success is to be measured not so much by the position that one has reached
in life but as by the obstacles they have overcome. - Booker T. Washington

Jakov Sosic

unread,
Jul 26, 2012, 8:46:20 AM7/26/12
to puppet...@googlegroups.com
On 07/26/2012 02:04 AM, James A. Peltier wrote:

> Add graph = true to the agent section on your puppet client.
> Then look in /var/lib/puppet/state/graphs. You can then use
> dot to generate images of the dependencies.

Thank you. FYI, the command is:

dot -Tpng resoruces.dot -o resources.png


One problem is that it generates very wide images (for example in my
case 22'000 x 500 px).

Is there a way to make it something like 500 x 22'000, so that
dependencies go from left to right and not from top to bottom? It would
be much easier to read such a graph...

Anatoliy Lisovskiy

unread,
Jul 27, 2012, 3:40:32 PM7/27/12
to puppet...@googlegroups.com
On Thu, Jul 26, 2012 at 5:46 AM, Jakov Sosic <jso...@srce.hr> wrote:
On 07/26/2012 02:04 AM, James A. Peltier wrote:

> Add graph = true to the agent section on your puppet client.
> Then look in /var/lib/puppet/state/graphs.  You can then use
> dot to generate images of the dependencies.

Thank you. FYI, the command is:

dot -Tpng resoruces.dot -o resources.png



Great, thanks for the tip!

Do puppet have some ready to use feature to collect all that nice graphs on the server?

 

Jakov Sosic

unread,
Jul 28, 2012, 10:10:56 AM7/28/12
to puppet...@googlegroups.com
On 07/26/2012 02:04 AM, James A. Peltier wrote:

> Add graph = true to the agent section on your puppet client.
> Then look in /var/lib/puppet/state/graphs. You can then use dot
> to generate images of the dependencies.

One problem though, I would like the graphs to be vertical and not
horizontal. It's easier for me too analyse vertical graphs... It's way
hard to do a horizontal scrolling on a 22'000 x 500 graph :-/



--
Jakov Sosic
www.srce.unizg.hr


Bryan Hunt

unread,
Jul 29, 2012, 6:15:15 AM7/29/12
to puppet...@googlegroups.com

Is it possible, or are there meta-data, or an external solution, which allow one:

To filter the output, in such a way as to only display a subset of the graph, such as Users?


Reply all
Reply to author
Forward
0 new messages