Ask Your Question

Puppet command to list modules that get pushed to a node

asked 2014-02-21 06:02:01 -0600

dre7425 gravatar image

Trying to figure out how the previous admins layered things down onto managed nodes (using puppet open source). Rather than having to reverse engineer the site.pp, node pp files, and the like, is there an way to go to a managed node and run a command that shows what it is inheriting in terms of modules, in the ordering sequence that they get pushed down?

“puppet module list” only returns a big list of all modules, and only works on the master.

edit retag flag offensive close merge delete

4 Answers

Sort by » oldest newest most voted

answered 2014-02-23 12:59:54 -0600

jonn gravatar image

Does the classes.txt file give you the information you need?

edit flag offensive delete link more


[modded from OP] The simplest turned out to view the contents of /var/lib/puppet/classes.txt on the managed node. I tested the ordering by creating a module for ...(more)

Ancillas gravatar imageAncillas ( 2014-02-26 10:00:05 -0600 )edit

answered 2014-02-21 11:42:19 -0600

Ancillas gravatar image

You can create dependency graphs with Puppet, but your mileage may vary. I've rarely found them useful, while other people swear by them.

edit flag offensive delete link more

answered 2014-02-28 07:07:29 -0600

Catalog file on the client should give you detailed info about all class.


edit flag offensive delete link more

answered 2014-02-21 10:34:00 -0600

robrwo gravatar image

On the node, you could run the agent with the --debug option, and then write a simple script to parse the class names from the output and show a report.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-02-21 06:02:01 -0600

Seen: 742 times

Last updated: Feb 28 '14