primer commit

This commit is contained in:
Rénich Bon Ćirić 2025-08-06 05:45:11 -06:00
commit 864b3e4008
Signed by: renich
GPG key ID: BDA314B08CB17657
105 changed files with 3185 additions and 0 deletions

27
opentofu/main.tf Normal file
View file

@ -0,0 +1,27 @@
terraform {
required_providers {
libvirt = {
source = "dmacvicar/libvirt"
}
}
}
provider "libvirt" {
uri = "qemu:///system"
}
resource "libvirt_cloudinit_disk" "cs10-cloudinit" {
name = "cs10-cloudinit.iso"
pool = var.pool_name
user_data = templatefile("templates/cloudinit.cfg.tftpl", {
root_password = var.root_password
}
)
}
resource "libvirt_volume" "cs10-base" {
name = "cs10-base.qcow2"
pool = var.pool_name
source = var.base_image_path
format = "qcow2"
}