summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-01-10 21:55:35 -0500
committerJesse Luehrs <doy@tozt.net>2021-01-10 21:55:35 -0500
commit2aceff08dc0ace1038e5b457a5d0c2d0e3b0cd60 (patch)
treebcbfcb0ac77e83a94b81caec424d6ba6833387ee /modules
parent86acf51365f16f3e07c05e7d3f9ae4086d16dbd0 (diff)
downloadpuppet-tozt-2aceff08dc0ace1038e5b457a5d0c2d0e3b0cd60.tar.gz
puppet-tozt-2aceff08dc0ace1038e5b457a5d0c2d0e3b0cd60.zip
fetch duplicati-client git repo before checking out
Diffstat (limited to 'modules')
-rw-r--r--modules/duplicati/manifests/client.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/duplicati/manifests/client.pp b/modules/duplicati/manifests/client.pp
index 9811f07..68301c1 100644
--- a/modules/duplicati/manifests/client.pp
+++ b/modules/duplicati/manifests/client.pp
@@ -23,7 +23,7 @@ class duplicati::client {
exec { 'checkout duplicati-client':
provider => shell,
- command => "/usr/bin/git checkout $duplicati_client_sha",
+ command => "/usr/bin/git fetch && /usr/bin/git checkout $duplicati_client_sha",
unless => "test \"\$(git rev-parse @)\" = \"$duplicati_client_sha\"",
cwd => '/opt/duplicati-client',
require => Exec['clone duplicati-client'];