aboutsummaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-11-18 15:40:06 +0100
committerAlex Auvolat <alex@adnab.me>2021-11-18 15:40:15 +0100
commit4836b03b8fc0defdb87d60a01eb250057b5ad5d6 (patch)
tree2e3ea08a17944c9910e746f9c12c8271d4247d1d /deploy.sh
parenta225d3bcbdfd8671da94968b3b4ebafc9769ae27 (diff)
downloadnixcfg-4836b03b8fc0defdb87d60a01eb250057b5ad5d6.tar.gz
nixcfg-4836b03b8fc0defdb87d60a01eb250057b5ad5d6.zip
allow for subset of nodes
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index e7384d8..fb55f60 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -2,7 +2,13 @@
cd $(dirname $0)
-for NIXHOST in $(ls node); do
+if [ -z "$@" ]; then
+ NIXHOSTLIST=$(ls node)
+else
+ NIXHOSTLIST="$@"
+fi
+
+for NIXHOST in $NIXHOSTLIST; do
NIXHOST=${NIXHOST%.*}
if [ -z "$SSH_USER" ]; then