summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/backup.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-03-16 08:26:27 +0100
committermakefu <github@syntax-fehler.de>2016-03-16 08:26:27 +0100
commit90150375a87298f69778aff5b2eb4f05a0f7e63d (patch)
tree4f9246bb93ea4376ebe1906db9360fb9bced2da0 /krebs/3modules/backup.nix
parent57476fb24a71dd709105ab61f380e12bca592279 (diff)
parent20afe7b9aeb5d523e10a0d5c597b8c1656bca58e (diff)
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/3modules/backup.nix')
-rw-r--r--krebs/3modules/backup.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/krebs/3modules/backup.nix b/krebs/3modules/backup.nix
index 97082f56a..d22dd3810 100644
--- a/krebs/3modules/backup.nix
+++ b/krebs/3modules/backup.nix
@@ -60,6 +60,12 @@ let
};
imp = {
+ krebs.on-failure.plans =
+ listToAttrs (map (plan: nameValuePair "backup.${plan.name}" {
+ }) (filter (plan: build-host-is "pull" "dst" plan ||
+ build-host-is "push" "src" plan)
+ enabled-plans));
+
systemd.services =
listToAttrs (map (plan: nameValuePair "backup.${plan.name}" {
# TODO if there is plan.user, then use its privkey