update terraform for jefke

This commit is contained in:
Pim Kunis 2023-10-29 17:55:04 +01:00
parent 701be696fe
commit b77e4fb4c3

View file

@ -81,52 +81,41 @@ resource "libvirt_network" "dmzbr" {
autostart = true autostart = true
} }
resource "libvirt_pool" "iso_jefke" { resource "libvirt_pool" "images_jefke" {
name = "iso" name = "images"
type = "dir" type = "dir"
path = "/kvm/iso" path = "/kvm/images"
provider = libvirt.jefke provider = libvirt.jefke
} }
resource "libvirt_pool" "disk_jefke" { resource "libvirt_pool" "disks_jefke" {
name = "disk" name = "disks"
type = "dir" type = "dir"
path = "/kvm/disk" path = "/kvm/disks"
provider = libvirt.jefke provider = libvirt.jefke
} }
resource "libvirt_pool" "init_jefke" { resource "libvirt_pool" "cloudinit_jefke" {
name = "init" name = "cloudinit"
type = "dir" type = "dir"
path = "/kvm/init" path = "/kvm/cloudinit"
provider = libvirt.jefke
}
resource "libvirt_volume" "ubuntu_jammy_jefke" {
name = "ubuntu-jammy.img"
pool = "iso"
source = "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img"
provider = libvirt.jefke
}
resource "libvirt_volume" "debian_bullseye_jefke" {
name = "debian-bullseye.iso"
pool = "iso"
source = "https://cloud.debian.org/images/cloud/bullseye/latest/debian-11-generic-amd64.qcow2"
provider = libvirt.jefke provider = libvirt.jefke
} }
resource "libvirt_volume" "debian_bookworm_jefke" { resource "libvirt_volume" "debian_bookworm_jefke" {
name = "debian-bookworm.qcow2" name = "debian-bookworm.qcow2"
pool = "iso" pool = "images"
source = "https://cloud.debian.org/images/cloud/bookworm/daily/latest/debian-12-generic-amd64-daily.qcow2" source = "https://cloud.debian.org/images/cloud/bookworm/daily/latest/debian-12-generic-amd64-daily.qcow2"
provider = libvirt.jefke provider = libvirt.jefke
depends_on = [
libvirt_pool.images_jefke
]
} }
resource "libvirt_network" "dmzbr_jefke" { resource "libvirt_network" "bridgedmz_jefke" {
name = "dmzbr" name = "bridgedmz"
mode = "bridge" mode = "bridge"
bridge = "dmzbr" bridge = "bridgedmz"
dhcp { dhcp {
enabled = false enabled = false
} }