main
text 27 lines 658 Bytes
Raw
1 #!/usr/bin/env bash
2
3 HOSTS=(
4 "hetzner@enormous-catfish.mac.nixos.org"
5 "hetzner@growing-jennet.mac.nixos.org"
6 "hetzner@intense-heron.mac.nixos.org"
7 "hetzner@maximum-snail.mac.nixos.org"
8 "hetzner@sweeping-filly.mac.nixos.org"
9 "customer@eager-heisenberg.mac.nixos.org"
10 "customer@kind-lumiere.mac.nixos.org"
11 "root@norwegian-blue.mac.nixos.org"
12 # ofborg (MacStadium)
13 "root@mac01.ofborg.org"
14 "root@mac02.ofborg.org"
15 "root@mac03.ofborg.org"
16 "root@mac04.ofborg.org"
17 "root@mac05.ofborg.org"
18 )
19 PIDS=()
20
21 for host in "${HOSTS[@]}"; do
22 # shellcheck disable=SC2068
23 (ssh "${host}" -- $@ 2>&1| sed -e "s/^/${host} | /") &
24 PIDS+=($!)
25 done
26
27 wait "${PIDS[@]}"