terraform { required_providers { proxmox = { source = "bpg/proxmox" version = "~>0.56.1" } ignition = { source = "community-terraform-providers/ignition" version = "2.3.4" } } required_version = ">=1.6.2" } data "ignition_disk" "data" { device = "/dev/disk/by-path/0000:00:0b.0" partition { label = "caddy_config" number = 0 sizemib = 100 startmib = 0 type_guid = "0FC63DAF-8483-4772-8E79-3D69D8477DE4" } partition { label = "caddy_data" number = 0 sizemib = 1000 startmib = 0 type_guid = "0FC63DAF-8483-4772-8E79-3D69D8477DE4" } } data "ignition_filesystem" "caddy_config" { device = "/dev/disk/by-label/caddy_config" format = "btrfs" wipe_filesystem = true label = "caddy_config" path = "/caddy/config" mount_options = ["nodev", "noexec", "nosuid"] } data "ignition_filesystem" "caddy_data" { device = "/dev/disk/by-label/caddy_data" format = "btrfs" wipe_filesystem = true label = "caddy_data" path = "/caddy/data" mount_options = ["nodev", "noexec", "nosuid"] } data "ignition_config" "acme_server" { disks = [ data.ignition_disk.data.rendered, ] filesystems = [ data.ignition_filesystem.caddy_config.rendered, data.ignition_filesystem.caddy_data.rendered, ] }