From 3e1d569289863487dad441d540e6c4d9c2263a54 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Mon, 5 Jan 2015 08:36:54 -0500 Subject: [PATCH 1/2] Use suggested agent options when running via cron. -t will override other settings we could appropriately set via puppet.conf --- manifests/agent.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/agent.pp b/manifests/agent.pp index 06171b5bc..28f8aa088 100644 --- a/manifests/agent.pp +++ b/manifests/agent.pp @@ -57,7 +57,7 @@ cron { 'puppet-agent': ensure => 'present', - command => '/usr/bin/puppet agent -t &> /dev/null', + command => '/usr/bin/puppet agent --onetime --no-daemonize &> /dev/null', user => 'root', minute => [$first, $second] } From 30e6c73fc29cf73d85155eb43c1370c917c6b12c Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Mon, 5 Jan 2015 08:38:38 -0500 Subject: [PATCH 2/2] Don't use full path to puppet executable --- manifests/agent.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/agent.pp b/manifests/agent.pp index 28f8aa088..1c2bf9f96 100644 --- a/manifests/agent.pp +++ b/manifests/agent.pp @@ -57,7 +57,7 @@ cron { 'puppet-agent': ensure => 'present', - command => '/usr/bin/puppet agent --onetime --no-daemonize &> /dev/null', + command => 'puppet agent --onetime --no-daemonize &> /dev/null', user => 'root', minute => [$first, $second] }