Ask Your Question

see/export all commands that puppet runs in the background during a catalog apply

asked 2016-11-07 13:44:28 -0600

Yeayu gravatar image

Hello all,

Is there a way to see/export what commands puppet will run in the background during a catalog enforcement? Let's say we have a puppet module that creates an user, installs a package and starts a service, is there a way to export a full list of all commands that puppet will run to check and apply all the resources? i.e.: 1. adduser myuser 2. yum install -y mypackage 3. service myservice start

I can see some of those commands by running debug mode: puppet agent -t -d, however no all of them are listed.

Thanks in advance.

edit retag flag offensive close merge delete


adding the --debug flag gives you a lot of extra information, usually about the commands it is running. that works with both puppet agent -t and puppet apply

DarylW gravatar imageDarylW ( 2016-11-07 14:25:18 -0600 )edit

I made reference to that debug option in my initial post (puppet agent -t -d). It provides some of the commands but not all commands that get run in the background.

Yeayu gravatar imageYeayu ( 2016-11-07 14:58:06 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-11-17 05:38:06 -0600

due to the RAL (resource abstraction layer) - this can be a bit magical. if the client debug isnt helping then enable debugging on the master - this gives more info:- stop puppet server - then run from cli with --no-daemonize --debug options then on client run again with puppet agent -t --debug

if above doesnt help then going through your puppet modules and looking at what its using then looking at the providers in /usr/lib/ruby/site_ruby/1.8/puppet.. will show you the underlying commands the providers are using for each type you have. cheers Stuart

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: 2016-11-07 13:44:28 -0600

Seen: 108 times

Last updated: Nov 17 '16