summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-30 23:20:55 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-30 23:20:55 -0500
commitaceaedaa9361951848cb3b5e8a7207611a1be90e (patch)
treef03f8bc1b7d4114298a585ec02f4ca66fcbf6774
parent41ab7232a2fb4a189d2c3c1c4bc3cda6b71952d8 (diff)
downloadpuppet-tozt-aceaedaa9361951848cb3b5e8a7207611a1be90e.tar.gz
puppet-tozt-aceaedaa9361951848cb3b5e8a7207611a1be90e.zip
make sure we're logged in before doing duplicati-client stuff
-rw-r--r--modules/duplicati/manifests/backup.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/duplicati/manifests/backup.pp b/modules/duplicati/manifests/backup.pp
index b47c0ca..8a140f3 100644
--- a/modules/duplicati/manifests/backup.pp
+++ b/modules/duplicati/manifests/backup.pp
@@ -9,8 +9,8 @@ define duplicati::backup($content) {
exec { "load backup for $name":
provider => shell,
- command => "duplicati-client create backup /etc/duplicati/$name.json",
- unless => "duplicati-client list backups | grep -qF -- '- $name:'",
+ command => "duplicati-client login && duplicati-client create backup /etc/duplicati/$name.json",
+ unless => "duplicati-client login && duplicati-client list backups | grep -qF -- '- $name:'",
require => [
Class['duplicati'],
File["/etc/duplicati/$name.json"],