Ask Your Question

we want to detect into a module the "noop" condition

asked 2017-11-10 08:59:13 -0500

vrbro gravatar image

we use: Puppet 3.8 it we start a command: puppet apply --noop .............. we want into a custom module/package ( a *.pp file ) : we want into an if statement, detect the usage of the --noop command line argument.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-11-13 05:10:58 -0500

You access the $clientnoop variable (PP3.8).

NB: You usually don't need to check for noop in a *.pp manifest explicitly. Your underlying resources (e.g. file or exec) are already doing nothing.

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: 2017-11-10 08:59:13 -0500

Seen: 28 times

Last updated: Nov 13 '17