aboutsummaryrefslogtreecommitdiff
path: root/nixops
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-01-05 17:08:32 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-01-05 17:08:32 +0100
commite820134d38c3b7470ea5112f40a6dc967f039878 (patch)
treef05a5cefe285d060aa0ebf52829bcfcd35549f8b /nixops
parentb22ce4895ef1e9723a02061f7293e528cfbf9754 (diff)
downloadNix-e820134d38c3b7470ea5112f40a6dc967f039878.tar.gz
Nix-e820134d38c3b7470ea5112f40a6dc967f039878.tar.zst
Nix-e820134d38c3b7470ea5112f40a6dc967f039878.zip
Add monitoring host
Diffstat (limited to 'nixops')
-rw-r--r--nixops/Makefile7
-rw-r--r--nixops/default.nix1
2 files changed, 8 insertions, 0 deletions
diff --git a/nixops/Makefile b/nixops/Makefile
index 5e654ee..02d34f8 100644
--- a/nixops/Makefile
+++ b/nixops/Makefile
@@ -36,6 +36,9 @@ ssh-eldiron:
36ssh-backup-2: 36ssh-backup-2:
37 $(NIXOPS_PRIV) ssh backup-2 -- $(SSH_ARGS) 37 $(NIXOPS_PRIV) ssh backup-2 -- $(SSH_ARGS)
38 38
39ssh-monitoring-1:
40 $(NIXOPS_PRIV) ssh monitoring-1 -- $(SSH_ARGS)
41
39info: 42info:
40 $(NIXOPS_PRIV) list 43 $(NIXOPS_PRIV) list
41 $(NIXOPS_PRIV) info 44 $(NIXOPS_PRIV) info
@@ -74,11 +77,15 @@ list-generations:
74delete-generations: 77delete-generations:
75 nix-env -p $(profile) --delete-generations $(GEN) 78 nix-env -p $(profile) --delete-generations $(GEN)
76 $(NIXOPS_PRIV) ssh eldiron -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN) 79 $(NIXOPS_PRIV) ssh eldiron -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)
80 $(NIXOPS_PRIV) ssh backup-2 -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)
81 $(NIXOPS_PRIV) ssh monitoring-1 -- nix-env -p /nix/var/nix/profiles/system --delete-generations $(GEN)
77.PHONY: delete-generations 82.PHONY: delete-generations
78 83
79cleanup: delete-generations 84cleanup: delete-generations
80 nix-store --gc 85 nix-store --gc
81 $(NIXOPS_PRIV) ssh eldiron -- nix-store --gc 86 $(NIXOPS_PRIV) ssh eldiron -- nix-store --gc
87 $(NIXOPS_PRIV) ssh backup-2 -- nix-store --gc
88 $(NIXOPS_PRIV) ssh monitoring-1 -- nix-store --gc
82.PHONY: cleanup 89.PHONY: cleanup
83 90
84###### Pull environment and deployment from remote 91###### Pull environment and deployment from remote
diff --git a/nixops/default.nix b/nixops/default.nix
index 45a235e..5f4f4d2 100644
--- a/nixops/default.nix
+++ b/nixops/default.nix
@@ -9,4 +9,5 @@
9 resources.sshKeyPairs.ssh-key = {}; 9 resources.sshKeyPairs.ssh-key = {};
10 eldiron = import ../modules/private/system/eldiron.nix { inherit privateFiles; }; 10 eldiron = import ../modules/private/system/eldiron.nix { inherit privateFiles; };
11 backup-2 = import ../modules/private/system/backup-2.nix { inherit privateFiles; }; 11 backup-2 = import ../modules/private/system/backup-2.nix { inherit privateFiles; };
12 monitoring-1 = import ../modules/private/system/monitoring-1.nix { inherit privateFiles; };
12} 13}