-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
172 lines (172 loc) · 3.45 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
variable "vm_count" {
type = number
default = "1"
description = "count VM machines"
}
variable "pm_ip" {
type = string
description = "Proxmox IP"
}
variable "pm_user" {
type = string
description = "Proxmox username in format: root@pam"
}
variable "pm_password" {
type = string
description = "Proxmox password"
}
variable "pm_port" {
type = number
description = "Proxmox SSH port"
}
variable "pm_private_key" {
description = "Full path to your private SSH key"
type = string
default = ""
}
variable "pm_otp" {
type = string
default = ""
description = "Proxmox OTP"
}
variable "target_node" {
type = string
description = "Target Proxmox node name"
}
variable "vm_name" {
type = string
description = "Name of VM"
}
variable "vm_desc" {
type = string
default = "Dployed with Terraform"
}
variable "vm_template" {
type = string
description = "Clone from template"
}
variable "vm_cores" {
type = number
default = 4
description = "VM cores"
}
variable "vm_socket" {
type = number
default = 1
description = "VM cores"
}
variable "vm_cpu" {
type = string
default = "host"
description = "VM CPU"
}
variable "vm_memory" {
type = number
default = 2048
description = "VM Memory"
}
variable "vm_storage" {
type = string
default = "local-zfs"
description = "VM emplacement storage"
}
variable "vm_system_disk_size" {
type = string
default = "32G"
description = "System Disk Size in GB"
}
variable "vm_balloon" {
type = number
default = 0
description = "VM balloon"
}
variable "vm_numa" {
type = bool
default = true
description = "VM NUMA"
}
variable "vm_bridge" {
type = string
default = "vmbr0"
description = "vm bridge"
}
variable "vm_tag" {
type = number
default = -1
description = "The VLAN tag to apply to packets on this device. -1 disables VLAN tagging"
}
variable "vm_timezone" {
type = string
default = "Europe/Berlin"
}
variable "vm_locales" {
type = string
default = "en_US.UTF-8"
}
variable "vm_data_disk_size" {
description = "Size of VM disk in GB"
type = string
default = "32G"
}
variable "vm_subnet" {
description = "Assign IP to VM. Set 'IP address' or 'dhcp' to recover IP over DHCP"
type = string
default = "dhcp"
}
variable "vm_hostnum" {
description = "First host number to assign in the subnet"
type = number
default = "1"
}
variable "vm_prefix" {
description = "Network Netmask in CIDR"
type = number
default = 24
}
variable "vm_gateway" {
description = "VM's Gateway for static IP"
type = string
default = ""
}
variable "vm_dns1" {
description = "VM's 1st DNS for static IP"
type = string
default = ""
}
variable "vm_dns2" {
description = "VM's 2nd DNS for static IP"
type = string
default = ""
}
variable "vm_searchdomain" {
description = "DNS search domain"
type = string
default = ""
}
variable "vm_domain" {
description = "VM's domain name"
type = string
default = ""
}
variable "vm_ssh_authorized_key_1" {
description = "1st authorized SSH public key string or leave blank"
type = string
}
variable "vm_ssh_authorized_key_2" {
description = "2nd authorized SSH public key string or leave blank"
type = string
default = ""
}
variable "vm_ssh_port" {
description = "Custom SSH Port to set inside VM"
type = number
default = 22
}
variable "vm_ciuser" {
description = "Cloud-Init default user's login"
type = string
}
variable "vm_cipass" {
description = "Cloud-Init default user's SHA-512 hashed password"
type = string
}