*chromie.pyrocufflink.blue* will replace *burp1.pyrocufflink.blue* as the backup server. It is running on the hardware that was originally *nvr1.pyrocufflink.blue*: a 1U Jetway server with an Intel Celeron N3160 CPU and 4 GB of RAM.
23 lines
447 B
Bash
23 lines
447 B
Bash
#!/bin/sh
|
|
# vim: set sw=4 ts=4 sts=4 noet :
|
|
|
|
ansible-playbook \
|
|
-l chromie.pyrocufflink.blue \
|
|
wait-for-host.yml \
|
|
|| exit
|
|
|
|
printf 'Waiting for SSH host certificate to be signed ... '
|
|
until ssh-keyscan -c chromie.pyrocufflink.blue 2>/dev/null | grep -q cert; do
|
|
sleep 1
|
|
done
|
|
echo done
|
|
ansible-playbook \
|
|
-l chromie.pyrocufflink.blue \
|
|
bootstrap.yml \
|
|
pyrocufflink.yml \
|
|
collectd.yml \
|
|
promtail.yml \
|
|
-u root \
|
|
-e @join.creds \
|
|
|| exit
|