From 1d86679ac2f973260822968700310f783508ec0a Mon Sep 17 00:00:00 2001
From: Klas Arvidsson <klas.arvidsson@liu.se>
Date: Tue, 4 Feb 2020 15:11:58 +0100
Subject: [PATCH] disable git pull schedule

---
 manifests/aes_sw.pp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/manifests/aes_sw.pp b/manifests/aes_sw.pp
index c3feecd..d7d3c25 100644
--- a/manifests/aes_sw.pp
+++ b/manifests/aes_sw.pp
@@ -90,6 +90,7 @@ class aes::aes_sw {
     creates => "${examadm_home}/scripts",
     user => "${examadm_user}",
     group => "${examadm_group}",
+    require => File["${examadm_home}/.ssh/known_hosts"],
   }
 
   schedule { 'everyday':
@@ -98,12 +99,12 @@ class aes::aes_sw {
   }
 
   exec { 'script-repo-pull':
-    command => '/usr/bin/git pull',
+    command => '/usr/bin/git pull --depth 1',
     cwd => "${examadm_home}/scripts",
     onlyif => "/usr/bin/test -d ${examadm_home}/scripts/.git",
     user => "${examadm_user}",
     group => "${examadm_group}",
-    schedule => 'everyday',
+#    schedule => 'everyday',
   }
 
   file { "${examadm_home}/.ssh/known_hosts":
-- 
GitLab