first functional commit

This commit is contained in:
Pin
2022-10-02 12:31:34 -04:00
parent d367398766
commit 46d46a4e36
52 changed files with 1216 additions and 0 deletions

6
localImages/Dockerfile Normal file
View File

@@ -0,0 +1,6 @@
FROM alpine:3.16
RUN apk update && \
apk add --no-cache terraform python3 libvirt-qemu qemu xorriso ansible gettext
COPY init.sh /

14
localImages/init.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
cd /mnt || exit 1
envsubst < templates/site.temp > site.yml
envsubst < templates/vars.temp > vars.tf
terraform init
terraform destroy -auto-approve
terraform apply -auto-approve
rm site.yml