Skip to content

Commit a7223a9

Browse files
committed
Use govuk_node_list to find jumpbox servers
1 parent 9c9a810 commit a7223a9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

deploy.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/sh
22
set -eu
33

4-
DEPLOY_TO="$(grep -E 'jumpbox-[0-9]+' /etc/ssh/ssh_known_hosts | awk '{ print $1 }' | cut -d, -f1 | xargs)"
5-
6-
for server in $DEPLOY_TO; do
4+
govuk_node_list -c jumpbox | while read server; do
75
rsync -av --delete --exclude='.git' "$(pwd)/" "deploy@${server}":/usr/local/share/govuk-fabric/
86
done

0 commit comments

Comments
 (0)