Files
configpolicy/deploy/loki1.sh
Dustin C. Hatch 010f652060 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_.
2024-11-05 06:54:27 -06:00

31 lines
578 B
Bash

#!/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