Files
configpolicy/deploy/nvr2.sh
Dustin C. Hatch d2b3b1f7b3 hosts: Deploy production Frigate on nvr2.p.b
*nvr2.pyrocufflink.blue* originally ran Fedora CoreOS.  Since I'm tired
of the tedium and difficulty involved in making configuration changes to
FCOS machines, I am migrating it to Fedora Linux, managed by Ansible.
2024-08-12 22:22:50 -05:00

26 lines
484 B
Bash

#!/bin/sh
# vim: set sw=4 ts=4 sts=4 noet :
ansible-playbook \
-l nvr2.pyrocufflink.blue \
wait-for-host.yml \
|| exit
printf 'Waiting for SSH host certificate to be signed ... '
until ssh-keyscan -c nvr2.pyrocufflink.blue 2>/dev/null | grep -q cert; do
sleep 1
done
echo done
ansible-playbook \
-l nvr2.pyrocufflink.blue \
useproxy.yml \
datavol.yml \
bootstrap.yml \
pyrocufflink.yml \
frigate.yml \
collectd.yml \
promtail.yml \
-u root \
-e @join.creds \
|| exit