From 8e3e8bc57ad97bae69c0bcd506faad3b9245ad7c Mon Sep 17 00:00:00 2001
From: hahn <axel.hahn@iml.unibe.ch>
Date: Wed, 24 Jun 2020 08:48:44 +0200
Subject: [PATCH] task#38890 replace direct puppet call with a shell script

---
 hooks/templates/inc_projects_config.php.erb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/hooks/templates/inc_projects_config.php.erb b/hooks/templates/inc_projects_config.php.erb
index 4859bde4..d0f78af5 100644
--- a/hooks/templates/inc_projects_config.php.erb
+++ b/hooks/templates/inc_projects_config.php.erb
@@ -33,7 +33,9 @@ $aConfig = array(
         
         // puppet agent liefert 0 oder 2 zurueck, wenn OK
         // http://docs.puppetlabs.com/references/3.4.0/man/apply.html
-        'command' => 'sudo puppet agent -t --detailed-exitcodes ; rc=$?; if [ $rc -eq 2 ]; then rc=0; fi ; exit $rc',
+        // 'command' => 'sudo puppet agent -t --detailed-exitcodes ; rc=$?; if [ $rc -eq 2 ]; then rc=0; fi ; exit $rc',
+        // task#38890 replace direct puppet call with a shell script
+        'command' => '/usr/local/bin/puppetrun.sh',
     ),
     'phases' => array(
         "preview" => array(
-- 
GitLab