19 lines
287 B
Bash
19 lines
287 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -euo pipefail
|
||
|
|
||
|
# array of hosts
|
||
|
HOSTS=(
|
||
|
"ns1"
|
||
|
"ns2"
|
||
|
"ca"
|
||
|
"ha1"
|
||
|
"http-proxy"
|
||
|
"jelly01"
|
||
|
"monitoring01"
|
||
|
)
|
||
|
|
||
|
for host in "${HOSTS[@]}"; do
|
||
|
echo "Rebuilding $host"
|
||
|
nixos-rebuild boot --flake .#${host} --target-host root@${host}
|
||
|
done
|