Skip to content
Snippets Groups Projects
Commit 6f2644bd authored by Thomas Johansson's avatar Thomas Johansson
Browse files

Test to replace exec for repo updates

parent 5fada96c
No related branches found
No related tags found
3 merge requests!50Fix: Puppet Defining "data_provider": "hiera" in metadata.json is deprecated....,!40Merge from devel. Commits related to RHEL9 upgrade and pdk cleanup.,!38Test to replace exec for repo updates
Pipeline #101832 passed
......@@ -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':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment