-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
96 lines (88 loc) · 2.65 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
resource "proxmox_lxc" "this" {
target_node = local.target_node
ostemplate = local.ostemplate
arch = local.arch
bwlimit = local.bwlimit
clone = local.clone
clone_storage = local.clone_storage
cmode = local.cmode
console = local.console
cores = local.cores
cpulimit = local.cpulimit
cpuunits = local.cpuunits
description = local.description
dynamic "features" {
for_each = local.features
content {
fuse = features.value.fuse
keyctl = features.value.keyctl
mount = features.value.mount
nesting = features.value.nesting
}
}
force = local.force
full = local.full
hastate = local.hastate
hagroup = local.hagroup
hookscript = local.hookscript
hostname = local.hostname
ignore_unpack_errors = local.ignore_unpack_errors
lock = local.lock
memory = local.memory
dynamic "mountpoint" {
for_each = local.mountpoint
content {
mp = mountpoint.value.mp
size = mountpoint.value.size
slot = mountpoint.value.slot
key = mountpoint.value.key
storage = mountpoint.value.storage
acl = mountpoint.value.acl
backup = mountpoint.value.backup
quota = mountpoint.value.quota
replicate = mountpoint.value.replicate
shared = mountpoint.value.shared
}
}
nameserver = local.nameserver
dynamic "network" {
for_each = local.network
content {
name = network.value.name
bridge = network.value.bridge
firewall = network.value.firewall
gw = network.value.gw
gw6 = network.value.gw6
hwaddr = network.value.hwaddr
ip = network.value.ip
ip6 = network.value.ip6
mtu = network.value.mtu
rate = network.value.rate
tag = network.value.tag
}
}
onboot = local.onboot
ostype = local.ostype
password = local.password
pool = local.pool
protection = local.protection
restore = local.restore
dynamic "rootfs" {
for_each = local.rootfs
content {
size = rootfs.value.size
storage = rootfs.value.storage
}
}
searchdomain = local.searchdomain
ssh_public_keys = local.ssh_public_keys
start = local.start
startup = local.startup
swap = local.swap
tags = local.tags
template = local.template
tty = local.tty
unique = local.unique
unprivileged = local.unprivileged
vmid = local.vmid
}