mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-07-08 18:28:30 +00:00
24 lines
570 B
Terraform
24 lines
570 B
Terraform
|
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" {
|
||
|
hostname = "terraform-test-container"
|
||
|
ostemplate = "shared:vztmpl/centos-7-default_20171212_amd64.tar.xz"
|
||
|
target_node = "node-01"
|
||
|
networks = [
|
||
|
{
|
||
|
name = "eth0"
|
||
|
bridge = "vmbr0"
|
||
|
ip = "dhcp"
|
||
|
ip6 = "dhcp"
|
||
|
}
|
||
|
]
|
||
|
storage = "local-lvm"
|
||
|
pool = "terraform"
|
||
|
passsword = "rootroot"
|
||
|
}
|