ararat: rough structure of deploy.py

This commit is contained in:
missytake 2024-11-30 09:27:13 +01:00
parent ca25242301
commit f09695fb5e
Signed by: missytake
GPG key ID: 04CC6658320518DF

View file

@ -0,0 +1,16 @@
# if it doesn't exist, create encrypted data partition
# mount encrypted data partition
# apk add kvm virsh
# rc-update add libvirtd
# add networking: https://wiki.alpinelinux.org/wiki/KVM#Networking
# modprobe tun
# echo "tun" >> /etc/modules-load.d/tun.conf
# cat /etc/modules | grep tun || echo tun >> /etc/modules
# if it doesn't exist, create debian base image (later: and other base images): https://mop.koeln/blog/creating-a-local-debian-vm-using-cloud-init-and-libvirt/#download-the-image
# for every active VM, if no image exists, run virt-install with the chosen base image and their cloud-init.yml file: https://mop.koeln/blog/creating-a-local-debian-vm-using-cloud-init-and-libvirt/#preparing-a-cloud-init-file
# for every active VM, make sure an IP is assigned and traffic is passed to it