at main 513 B view raw
1terraform { 2 required_providers { 3 incus = { 4 source = "lxc/incus" 5 version = "1.0.0" 6 } 7 } 8} 9 10provider "incus" {} 11 12resource "incus_instance" "knot0" { 13 name = "nudo0" 14 project = "tangled" 15 image = "images:ubuntu/24.04" 16 type = "virtual-machine" 17 18 config = { 19 "boot.autostart" = "false" 20 "limits.cpu" = 2 21 "limits.memory" = "2GB" 22 } 23 24 profiles = ["default"] 25 26 wait_for { 27 type = "ipv4" 28 } 29} 30 31output "knot0_ipv4" { 32 value = incus_instance.knot0.ipv4_address 33}