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.
This commit is contained in:
28
deploy/haproxy0.sh
Normal file
28
deploy/haproxy0.sh
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user