20 lines
No EOL
435 B
HCL
20 lines
No EOL
435 B
HCL
#test of gitea runner on pve2
|
|
resource "proxmox_virtual_environment_container" "managed_lxc" {
|
|
node_name = var.target_node
|
|
vm_id = var.lxc_id
|
|
|
|
initialization {
|
|
hostname = var.lxc_hostname
|
|
ip_config {
|
|
ipv4 {
|
|
# We can even variablize the IP if you want!
|
|
address = "172.16.201.${var.lxc_id}/24"
|
|
gateway = "172.16.201.1"
|
|
}
|
|
}
|
|
}
|
|
|
|
clone {
|
|
vm_id = var.source_template_id
|
|
}
|
|
} |