2019-06-03 07:01:19 +00:00
|
|
|
provider "proxmox" {
|
|
|
|
pm_tls_insecure = true
|
|
|
|
pm_api_url = "https://proxmox.org/api2/json"
|
|
|
|
pm_password = "supersecret"
|
|
|
|
pm_user = "terraform-user@pve"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "proxmox_lxc" "lxc-test" {
|
2019-06-20 20:34:43 +00:00
|
|
|
features {
|
|
|
|
nesting = true
|
|
|
|
}
|
2019-06-05 18:32:54 +00:00
|
|
|
hostname = "terraform-new-container"
|
2019-06-05 20:32:29 +00:00
|
|
|
network {
|
2019-06-05 18:32:54 +00:00
|
|
|
id = 0
|
|
|
|
name = "eth0"
|
|
|
|
bridge = "vmbr0"
|
|
|
|
ip = "dhcp"
|
|
|
|
ip6 = "dhcp"
|
|
|
|
}
|
2019-06-05 20:32:29 +00:00
|
|
|
ostemplate = "shared:vztmpl/centos-7-default_20171212_amd64.tar.xz"
|
2019-06-03 07:16:32 +00:00
|
|
|
password = "rootroot"
|
2019-06-05 20:32:29 +00:00
|
|
|
pool = "terraform"
|
|
|
|
storage = "local-lvm"
|
|
|
|
target_node = "node-01"
|
2019-06-20 20:34:43 +00:00
|
|
|
unprivileged = true
|
2019-06-03 07:01:19 +00:00
|
|
|
}
|