-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
123 lines (120 loc) · 3.2 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
##--- Start of global Virtual Machine params description ---##
variable "node_name" {
description = "Target PVE node to deploy VM"
type = list(string)
default = ["pve"]
}
variable "pool_name" {
description = "Target Pool name for VM(s)"
type = string
default = null
}
variable "create_pool" {
description = "Flag to control pool creation"
type = bool
default = true
}
variable "tags_vm" {
description = "List of virtual machine tags"
type = list(string)
default = [""]
}
variable "description_vm" {
description = "Owner, purpose and other description of the VM(s)"
type = string
default = null
}
variable "count_vm" {
description = "Count of VM(s) to be deployed"
type = number
default = 1
}
##--- End region ---##
##--- Start Virtual Machine configurations description ---##
variable "vm_name" {
description = "Name of the VM"
type = string
default = "node"
}
variable "vm_clone_id" {
description = "Name of the Template VM we should use as the source to clone"
type = string
default = null
}
variable "vm_cpu_type" {
description = "Modeless CPU"
type = string
default = "host"
}
variable "vm_cores" {
description = "Count of cores to be deployed"
type = number
default = 2
}
variable "vm_memory" {
description = "Count of memory to be deployed"
type = number
default = 4096
}
variable "vm_disk_sizes" {
description = "Size of the disk in GigaBytes"
type = list(string)
default = ["10G"]
}
variable "vm_storage_name" {
description = "Name of the PVE storage that will used to store our VM"
type = string
default = "local-zfs"
}
##--- End region ---#
##--- Start Network Interface configuration ---#
variable "vm_newtwork_bridge_name" {
description = "VM bridge interface name"
type = string
default = "vmbr0"
}
variable "vm_network_vlan_id" {
description = "VLAN ID to assign to VM"
type = number
default = null
}
##--- End region ---#
##--- Start description of Cloud-Init variables ---##
variable "vm_user_name" {
description = "Override default cloud-init user for provisioning"
type = string
default = null
}
variable "vm_user_password" {
description = "Override default cloud-init user's password. Please, use \"Sensitive\" param!"
type = string
sensitive = true
default = null
}
variable "vm_search_domain" {
description = "Sets default DNS search domain suffix."
type = string
default = null
}
variable "vm_dns" {
description = "Sets default DNS server for QEMU GuestAgent"
type = list(string)
default = null
}
variable "vm_network_ip_address" {
description = "IP address to assign to QEMU GuestAgent"
type = string
default = null
}
variable "vm_network_gw_adress" {
description = "IP address of default gateway"
type = string
default = null
}
variable "vm_user_ssh_key_file" {
description = "Newline delimited list of SSH public keys to add to authorized keys file for the user created from the \"vm_user_name\" parameter"
type = string
sensitive = true
default = null
}
##--- End region ---##