diff --git a/manifests/aes_sw.pp b/manifests/aes_sw.pp index c3feecd9fd7c5e5f59fd16c5501dc98a38ccce73..d7d3c257f4b4d009091da7c306712cc4f3ab3c4b 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":