59 lines
1.2 KiB
HCL
59 lines
1.2 KiB
HCL
resource "proxmox_lxc" "omada" {
|
|
# depends_on = [
|
|
# proxmox_vm_qemu.dev-docker
|
|
# ]
|
|
target_node = "pve"
|
|
vmid = "202"
|
|
hostname = "omada"
|
|
ostemplate = "local:vztmpl/debian-13-standard_13.1-1_amd64.tar.zst"
|
|
password = var.ci_password
|
|
unprivileged = false
|
|
ostype = "debian"
|
|
onboot = true
|
|
start = true
|
|
startup = "order=1000"
|
|
tags = "docker;container;appliance"
|
|
|
|
|
|
ssh_public_keys = <<EOF
|
|
${var.ssh_key}
|
|
EOF
|
|
|
|
memory = "4096"
|
|
swap = "512"
|
|
|
|
rootfs {
|
|
storage = "local"
|
|
size = "8G"
|
|
}
|
|
|
|
features {
|
|
fuse = true
|
|
nesting = true
|
|
mount = "nfs;cifs"
|
|
}
|
|
|
|
// Bind Mount Point
|
|
mountpoint {
|
|
key = "1"
|
|
slot = 1
|
|
storage = "/mnt/lxc/omada"
|
|
// Without 'volume' defined, Proxmox will try to create a volume with
|
|
// the value of 'storage' + : + 'size' (without the trailing G) - e.g.
|
|
// "/srv/host/bind-mount-point:256".
|
|
// This behaviour looks to be caused by a bug in the provider.
|
|
volume = "/mnt/lxc/omada"
|
|
mp = "/data"
|
|
size = "1G"
|
|
}
|
|
|
|
network {
|
|
name = "eth0"
|
|
bridge = "vmbr0"
|
|
ip = "10.10.40.2/24"
|
|
gw = "10.10.40.1"
|
|
tag = 40
|
|
ip6 = "auto"
|
|
}
|
|
}
|