Ask Your Question
2

Puppet command to list modules that get pushed to a node

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

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
1

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

jonn gravatar image

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

edit flag offensive delete link more

Comments

[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 -0500 )edit
1

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

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
0

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

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

/var/lib/puppet/client_yaml/catalog/<hostname></hostname>

edit flag offensive delete link more
0

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

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

Stats

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

Seen: 358 times

Last updated: Feb 28 '14