update lxc example

This commit is contained in:
Andreas Gruhler 2019-06-05 20:32:54 +02:00
parent 9276217198
commit 5a7afb6986
2 changed files with 18 additions and 9 deletions

View File

@ -6,18 +6,18 @@ provider "proxmox" {
}
resource "proxmox_lxc" "lxc-test" {
hostname = "terraform-test-container"
hostname = "terraform-new-container"
ostemplate = "shared:vztmpl/centos-7-default_20171212_amd64.tar.xz"
target_node = "node-01"
networks = [
{
name = "eth0"
bridge = "vmbr0"
ip = "dhcp"
ip6 = "dhcp"
}
]
network = {
id = 0
name = "eth0"
bridge = "vmbr0"
ip = "dhcp"
ip6 = "dhcp"
}
storage = "local-lvm"
pool = "terraform"
password = "rootroot"
force = true
}

View File

@ -0,0 +1,9 @@
provider "proxmox" {
pm_api_url = "https://proxmox.wolke4.org/api2/json"
pm_password = "^U)kV+^Yv}9_KiXN6QY,3;NZO"
pm_user = "terraform@pve"
}
resource "proxmox_lxc" "lxc-test" {
target_node = "wolke4"
}