Add local puppet log file on the nodes

Change-Id: I4738f2af4367ef948b0c40e1f29ef80c1637b1b4
This commit is contained in:
Dmitry Ilyin 2014-05-07 19:44:35 +04:00
parent 9c83d3ecec
commit fbecf57fe8
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ module MCollective
def startup_hook
@splaytime = @config.pluginconf["puppetd.splaytime"].to_i || 0
@lockfile = @config.pluginconf["puppetd.lockfile"] || "/tmp/puppetd.lock"
@log = @config.pluginconf["puppetd.log"] || "/var/log/puppet.log"
@statefile = @config.pluginconf["puppetd.statefile"] || "/var/lib/puppet/state/state.yaml"
@pidfile = @config.pluginconf["puppet.pidfile"] || "/var/run/puppet/agent.pid"
@puppetd = @config.pluginconf["puppetd.puppetd"] || "/usr/sbin/daemonize -a \
@ -181,6 +182,7 @@ module MCollective
cmd << '--debug' if request[:puppet_debug]
cmd << '--evaltrace' if request[:puppet_debug]
cmd << "--logdest #{@log}" if @log
cmd = cmd.join(" ")