-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
134 lines (112 loc) · 3.21 KB
/
variables.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#####################################################
# VM Qemu Resource
#####################################################
variable "target_node" {
description = "The name of the Proxmox Node on which to place the VM"
type = string
default = "pve"
}
variable "pool" {
description = "The destination resource pool for the new VM"
type = string
default = null
}
variable "name" {
description = "The name of the VM within Proxmox"
type = string
}
variable "clone" {
description = "The base VM from which to clone to create the new VM"
type = string
}
variable "sockets" {
description = "The number of CPU sockets to allocate to the VM"
type = number
default = 1
}
variable "cores" {
description = "The number of CPU cores per CPU socket to allocate to the VM"
type = number
default = 1
}
variable "numa" {
description = "Whether to enable Non-Uniform Memory Access in the guest"
type = bool
default = false
}
variable "memory" {
description = "The amount of memory to allocate to the VM in Megabytes"
type = number
default = 512
}
variable "disks" {
description = "VM disk config"
type = list(map(string))
default = [{}]
}
variable "networks" {
description = "VM network adapter config"
type = list(map(string))
default = [{}]
}
variable "tags" {
description = "Map of tags to add to the VM. Stored as JSON in the Notes field in Proxmox."
type = map(string)
default = {}
}
variable "ansible_groups" {
description = "List of ansible groups to assign to the VM. Stored as JSON in the Notes field in Proxmox."
type = list(string)
default = []
}
variable "connection" {
description = "Provisioner connection settings"
type = map(string)
sensitive = true
default = {
type = "ssh"
agent = true
}
}
#####################################################
# Cloud-Init
#####################################################
variable "ciuser" {
description = "Override the default cloud-init user for provisioning"
type = string
}
variable "cipassword" {
description = "Override the default cloud-init user's password"
type = string
sensitive = true
default = null
}
variable "searchdomain" {
description = "Sets default DNS search domain suffix"
type = string
default = null
}
variable "nameserver" {
description = "Sets default DNS server for guest"
type = string
default = null
}
variable "sshkeys" {
description = "Newline delimited list of SSH public keys to add to authorized keys file for the cloud-init user"
type = string
}
variable "ipconfig0" {
description = "The first IP address to assign to the guest. Format: [gw=<GatewayIPv4>] [,gw6=<GatewayIPv6>] [,ip=<IPv4Format/CIDR>] [,ip6=<IPv6Format/CIDR>]"
type = string
default = "ip=dhcp"
}
variable "ipconfig1" {
description = "The second IP address to assign to the guest. Same format as ipconfig0"
type = string
default = null
}
variable "ipconfig2" {
description = "The third IP address to assign to the guest. Same format as ipconfig0"
type = string
default = null
}