Issue #12051 has been updated by Dominic Cleal. Category set to exec Status changed from Unreviewed to In Topic Branch Pending Review Target version set to 2.7.x Keywords set to exec logging Branch set to https://github.com/puppetlabs/puppet/pull/362
Agreed, this is irritating. I think to link it to logoutput is a mistake though as it will overload the use of the parameter, but having output sent to debug will let users investigate problems. Submitted pull request #362. ---------------------------------------- Bug #12051: Exec onlyif / unless does not capture output https://projects.puppetlabs.com/issues/12051 Author: Robert Buchholz Status: In Topic Branch Pending Review Priority: Normal Assignee: Category: exec Target version: 2.7.x Affected Puppet version: 2.6.4 Keywords: exec logging Branch: https://github.com/puppetlabs/puppet/pull/362 Puppet does not log the output of a check command to an exec, even if logoutput is true. There are no other facilities to log the check output either. Example: exec { "/bin/something": onlyif => "/bin/check", logoutput => true, } Results in debug: /Stage[main]/redacted/Exec[/bin/something]: Executing check '/bin/check' debug: Executing '/bin/check' debug: ... next entity Workaround: I can append " > /path/to/logfile 2>&1" to the check command. But that's what I would expect "logoutput" to be there for. The way it is right now makes it unnecessarily hard to debug scripts that fail inside puppet but not outside (due to environment differences, for example). -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
