Harden deployment, authentication, firewall and media storage failure paths
This commit is contained in:
parent
64ede7bd05
commit
7145a35927
35 changed files with 2529 additions and 499 deletions
|
|
@ -21,6 +21,10 @@ let
|
|||
# as "up". Two anycast targets so one being down isn't a false alarm.
|
||||
watchdog = pkgs.writeShellScript "wan-watchdog" ''
|
||||
set -uo pipefail
|
||||
# Hold this for the whole check/recovery operation. Never restart the
|
||||
# network or flush conntrack during activation, verification or rollback.
|
||||
exec 9>/run/lock/fred-deploy.lock
|
||||
${pkgs.util-linux}/bin/flock -n 9 || exit 0
|
||||
wan=eno1
|
||||
state=/var/lib/wan-watchdog
|
||||
ipfile=$state/wan-ip
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue