mirror of
https://github.com/letic/terraform-provider-proxmox.git
synced 2024-07-01 07:02:40 +00:00
update lxc example
This commit is contained in:
parent
9276217198
commit
5a7afb6986
|
@ -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
|
||||
}
|
||||
|
|
9
examples/lxc_example_override.tf
Normal file
9
examples/lxc_example_override.tf
Normal 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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user