terraform-provider-proxmox/examples/lxc_example.tf

28 lines
628 B
Terraform
Raw Normal View History

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"
2019-08-02 12:01:52 +00:00
pm_otp = ""
2019-06-03 07:01:19 +00:00
}
resource "proxmox_lxc" "lxc-test" {
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"
unprivileged = true
2019-06-03 07:01:19 +00:00
}