@cryptotaxi247 / infra-1 / commits / 9236b031

macs: add small wrapper to execute calls on all macs

Martin Weinelt committed Dec 12, 2024 at 22:34 UTC 9236b0315f880e87c1d9d9ada6e52b2b3bbaafe2
1 file changed +16
macs/mac-exec new
+16
@@ -0,0 +1,16 @@
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 +)
12 +
13 +for host in "${HOSTS[@]}"; do
14 + # shellcheck disable=SC2068
15 + (ssh "${host}" -- $@ 2>&1| sed -e "s/^/${host} | /") &
16 +done