diff --git a/manifests/aes_sw.pp b/manifests/aes_sw.pp index 15cec34746e7cf86234f7d9f25806fa70026473d..761ca95b03390772959665ad295b31f1e578ffae 100644 --- a/manifests/aes_sw.pp +++ b/manifests/aes_sw.pp @@ -138,11 +138,26 @@ class aes::aes_sw { enable => true, } - exec { 'script-repo-updated': - command => "/opt/utils/update_repo.sh ${examadm_home}/scripts https://oauth2:iAyewr9Jq5E-tnsVrmbj@gitlab.liu.se/examadm/scripts.git master", - cwd => $examadm_home, - user => $examadm_user, - group => $examadm_group, + # exec { 'script-repo-updated': + # command => "/opt/utils/update_repo.sh ${examadm_home}/scripts https://oauth2:iAyewr9Jq5E-tnsVrmbj@gitlab.liu.se/examadm/scripts.git master", + # cwd => $examadm_home, + # user => $examadm_user, + # group => $examadm_group, + # } + + # Test to replace exec for repo update //thojo16 + vcsrepo { "${examadm_home}/scripts": + ensure => latest, + provider => git, + source => 'https://oauth2:iAyewr9Jq5E-tnsVrmbj@gitlab.liu.se/examadm/scripts.git', + revision => 'master', + owner => $examadm_user, + group => $examadm_group, + notify => Exec['TriggeredByUpdates'], + } + exec { 'TriggeredByUpdates': + refreshonly => true, + command => "touch ${examadm_home}/foo-vcsrepo", } schedule { 'everyday':