primer commit
This commit is contained in:
commit
864b3e4008
105 changed files with 3185 additions and 0 deletions
27
opentofu/main.tf
Normal file
27
opentofu/main.tf
Normal 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"
|
||||
}
|
||||
Loading…
Reference in a new issue