hosts: Add loki1.p.b

_loki1.pyrocufflink.blue_ replaces _loki0.pyrocufflink.blue_.  The
former runs Fedora Linux and is managed by Ansible, while the latter ran
Fedora CoreOS and was managed by Ignition and _cfg_.
This commit is contained in:
2024-10-13 18:11:40 -05:00
parent 4cd983d5f4
commit 010f652060
4 changed files with 73 additions and 1 deletions

30
deploy/loki1.sh Normal file
View File

@@ -0,0 +1,30 @@
#!/bin/sh
# vim: set ts=4 :
if ! virsh list --all --name | grep -qF loki1; then
./newvm.sh loki1 \
--fedora 40 \
--memory 4096,currentMemory=2048 \
--vcpus 2 \
--network network=prod,mac=52:54:00:51:3c:e9 \
--no-console \
-- \
--disk pool=default,size=128,cache=none \
|| exit
sleep 15
fi
ANSIBLE_HOST_KEY_CHECKING=false \
ansible-playbook \
-l loki1.pyrocufflink.blue \
wait-for-host.yml \
bootstrap.yml \
datavol.yml \
pyrocufflink.yml \
loki.yml \
collectd.yml \
promtail.yml \
-u root \
-e ansible_host=loki1.local \
-e @join.creds \
|| exit