hosts: Deploy haproxy0
_haproxy0.pyrocufflink.blue_ is a Fedora Linux VM that runs HAProxy to provide reverse proxy, exposing web sites and applications to the Internet. It has a static MAC address because it will need a static IP address, at least initially, in order for DNAT to work.frigate-exporter
parent
2fa28dfa5f
commit
2a110d7aba
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
# vim: set ts=4 :
|
||||
|
||||
if ! virsh list --all --name | grep -qF haproxy0; then
|
||||
./newvm.sh haproxy0 \
|
||||
--fedora 40 \
|
||||
--memory 2048 \
|
||||
--vcpus 2 \
|
||||
--network network=prod,mac=52:54:00:69:e9:a7 \
|
||||
--no-console \
|
||||
-- \
|
||||
|| exit
|
||||
sleep 15
|
||||
fi
|
||||
|
||||
ANSIBLE_HOST_KEY_CHECKING=false \
|
||||
ansible-playbook \
|
||||
-l haproxy0.pyrocufflink.blue \
|
||||
wait-for-host.yml \
|
||||
bootstrap.yml \
|
||||
pyrocufflink.yml \
|
||||
collectd.yml \
|
||||
promtail.yml \
|
||||
dch-proxy.yml \
|
||||
-u root \
|
||||
-e ansible_host=haproxy0.local \
|
||||
-e @join.creds \
|
||||
|| exit
|
2
hosts
2
hosts
|
@ -34,6 +34,7 @@ vm-hosts
|
|||
nvr2.pyrocufflink.blue
|
||||
|
||||
[dch-proxy]
|
||||
haproxy0.pyrocufflink.blue
|
||||
|
||||
[dch-vpn]
|
||||
|
||||
|
@ -130,6 +131,7 @@ dc-grumbly.pyrocufflink.blue
|
|||
dc-headphone.pyrocufflink.blue
|
||||
file0.pyrocufflink.blue
|
||||
git0.pyrocufflink.blue
|
||||
haproxy0.pyrocufflink.blue
|
||||
k8s-ctrl0.pyrocufflink.blue
|
||||
matrix0.pyrocufflink.blue
|
||||
nvr2.pyrocufflink.blue
|
||||
|
|
Loading…
Reference in New Issue