Ask Your Question

Puppet exec

asked 2018-12-16 05:19:29 -0600

Dan1 gravatar image

When using Puppet, I get error messages like

returned 1 instead of one of [0]

Is there a way to output/get the actual error message?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-12-17 10:25:47 -0600

DarylW gravatar image

Please check out the puppet docs on the Exec resource - they will point you to the attribute that you are looking for - logoutput-


Whether to log command output in addition to logging the exit code. Defaults to on_failure, which only logs the output when the command has an exit code that does not match any value specified by the returns attribute. As with any resource type, the log level can be controlled with the loglevel metaparameter.

Default: on_failure

edit flag offensive delete link more

answered 2018-12-16 09:51:55 -0600

Yes, there is.

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


Asked: 2018-12-16 05:19:29 -0600

Seen: 49 times

Last updated: Dec 17