provider "proxmox" { pm_api_url = "https://192.168.2.250:8006/api2/json"
} resource "proxmox_lxc" "test_container" { target_node = "proxmox" hostname = "test-lxc" cores = 1 memory = 512
}
provider "proxmox" { pm_api_url = "https://192.168.2.250:8006/api2/json"
} resource "proxmox_lxc" "test_container" { target_node = "proxmox" hostname = "test-lxc" cores = 1 memory = 512
}
provider "proxmox" { pm_api_url = "https://192.168.2.250:8006/api2/json"
} resource "proxmox_lxc" "test_container" { target_node = "proxmox" hostname = "test-lxc" cores = 1 memory = 512
}
lxc_containers = { testbox = {} docker = { cores = 4, memory = 4096, disk_size = "64G" }
}
lxc_containers = { testbox = {} docker = { cores = 4, memory = 4096, disk_size = "64G" }
}
lxc_containers = { testbox = {} docker = { cores = 4, memory = 4096, disk_size = "64G" }
}
data "http" "github_keys" { url = "https://github.com/${var.github_username}.keys"
}
data "http" "github_keys" { url = "https://github.com/${var.github_username}.keys"
}
data "http" "github_keys" { url = "https://github.com/${var.github_username}.keys"
}
ip=$(curl -sk "${PM_API_URL}/nodes/${node}/lxc/${vmid}/interfaces" \ -H "Authorization: PVEAPIToken=..." \ | jq -r '.data[] | select(.name=="eth0") | .["ip-addresses"][] | select(.["ip-address-type"]=="inet") | .["ip-address"]')
ip=$(curl -sk "${PM_API_URL}/nodes/${node}/lxc/${vmid}/interfaces" \ -H "Authorization: PVEAPIToken=..." \ | jq -r '.data[] | select(.name=="eth0") | .["ip-addresses"][] | select(.["ip-address-type"]=="inet") | .["ip-address"]')
ip=$(curl -sk "${PM_API_URL}/nodes/${node}/lxc/${vmid}/interfaces" \ -H "Authorization: PVEAPIToken=..." \ | jq -r '.data[] | select(.name=="eth0") | .["ip-addresses"][] | select(.["ip-address-type"]=="inet") | .["ip-address"]')
============================================
Infrastructure up and provisioned
============================================ SSH into your containers: ssh [email protected]
============================================
Infrastructure up and provisioned
============================================ SSH into your containers: ssh [email protected]
============================================
Infrastructure up and provisioned
============================================ SSH into your containers: ssh [email protected]