Set KRB5CCNAME for duplicity_salt.sh
diff --git a/backupninja/files/duplicity_salt.sh b/backupninja/files/duplicity_salt.sh
index 3d4e62f..07b6278 100644
--- a/backupninja/files/duplicity_salt.sh
+++ b/backupninja/files/duplicity_salt.sh
@@ -4,6 +4,7 @@
exec /usr/bin/sudo $0 $*
fi
+export KRB5CCNAME=/tmp/krb5cc_duplicity_salt
DUPLICITY_ARGS="--progress $(grep -E '^options\ ?=' /etc/backup.d/200.backup.dup | sed 's,options[\ ]*=[\ ]*,,g')"
BACKUP_URL="$(grep -E '^desturl\ ?=' /etc/backup.d/200.backup.dup | sed 's,desturl[\ ]*=[\ ]*,,g')"
diff --git a/backupninja/meta/sensu.yml b/backupninja/meta/sensu.yml
index 2a491cb..81656d8 100644
--- a/backupninja/meta/sensu.yml
+++ b/backupninja/meta/sensu.yml
@@ -1,6 +1,6 @@
check:
local_backup_{{ grains['fqdn'] }}:
- command: "PATH=$PATH:/usr/local/sbin KRB5CCNAME=/tmp/krb5cc_sensu_backupninja duplicity_salt.sh nagios 24"
+ command: "PATH=$PATH:/usr/local/sbin duplicity_salt.sh nagios 24"
interval: 3600
timeout: 300
occurrences: 1