Make vault-agent not freak out on failed service restarts

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-06-28 21:52:45 +02:00
parent 68b2b3b07d
commit a64b46e61a
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@ in
pkgs.writeShellScript "envoy-mainsail-reload.sh"
''
sudo systemd-run -P --machine klipper /run/current-system/sw/bin/bash -l -c \
'systemctl try-reload-or-restart ${concatStringsSep " " serviceList}'
'systemctl try-reload-or-restart ${concatStringsSep " " serviceList}' || true
'';
}
];

View file

@ -166,7 +166,7 @@ in
in
pkgs.writeShellScript "envoy-grafana-reload.sh" ''
sudo systemd-run -P --machine monitor /run/current-system/sw/bin/bash -l -c \
'systemctl try-reload-or-restart ${concatStringsSep " " serviceList}'
'systemctl try-reload-or-restart ${concatStringsSep " " serviceList}' || true
'';
}
{
@ -175,7 +175,7 @@ in
'';
destination = "/run/secrets/envoy-blowhole.token";
command = pkgs.writeShellScript "envoy-blowhole-reload.sh" ''
sudo systemctl try-reload-or-restart hashicorp-envoy-telegraf
sudo systemctl try-reload-or-restart hashicorp-envoy-telegraf || true
'';
}
{
@ -185,7 +185,7 @@ in
destination = "/run/secrets/monitor/telegraf.env";
command = pkgs.writeShellScript "monitor-telegraf-reload.sh" ''
sudo systemd-run -P --machine monitor /run/current-system/sw/bin/bash -l -c \
'systemctl try-reload-or-restart telegraf'
'systemctl try-reload-or-restart telegraf' || true
'';
}
{
@ -198,7 +198,7 @@ in
perms = "0644";
command = pkgs.writeShellScript "monitor-telegraf-reload.sh" ''
sudo systemd-run -P --machine monitor /run/current-system/sw/bin/bash -l -c \
'systemctl try-reload-or-restart grafana'
'systemctl try-reload-or-restart grafana' || true
'';
}
];