Skip to content
Snippets Groups Projects

Test to replace exec for repo updates

Merged Thomas Johansson requested to merge thojo16/aes:devel into devel
1 file
+ 20
5
Compare changes
  • Side-by-side
  • Inline
+ 20
5
@@ -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':
Loading