-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
123 lines (111 loc) · 2.18 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
### Change the "default" value according to your environment!
# the ips are all fake
variable "user"{
type = string
default = "[email protected]"
}
variable "password"{
type = string
default = "password"
}
#if you dont setup a default value, terraform will ask the value when running terraform plan or apply
variable "vm_count" {
description = "Number of instaces"
type = number
}
variable "vm_name" {
description = "vm name : "
type = string
}
variable "host_name" {
type = string
default = "localhost"
}
variable "domain" {
type = string
default = "localdomain"
}
variable "private_IP" {
description = "Avaliable IP"
type = list(string)
default = [
"",
"192.24.1.106",
"192.24.1.107",
"192.24.1.108",
"192.24.1.109",
"192.24.1.110",
"192.24.1.111",
"192.24.1.112",
"192.24.1.113",
"192.24.1.114",
"192.24.1.115",
]
}
variable "vsphere_server" {
type = string
description = "Server address"
default = "192.18.1.20"
}
variable "dc"{
type = string
default = "DataCenter name"
}
variable "ds" {
type = string
default = "DataStore name"
}
variable "vsphere_insecure_connection" {
type = bool
description = "The SSL is invalid?"
default = true
}
variable "vsphere_compute_cluster" {
type = string
default = "compute cluster name"
}
#ip address or FQDN
#change this to your environment
variable "vsphere_host" {
type = string
default = "192.20.120.140"
description = "Host address"
}
variable "vsphere_network" {
type = string
default = "network name"
}
variable "resource_pool" {
type = string
default = "Resource pool name"
}
variable "vsphere_virtual_machine-template" {
type = string
default = "vm template name"
}
#the guest id need to be the same as the template
variable "guest_id" {
type = string
default = "rhel8_64Guest"
}
variable "folder" {
type = string
default = "folder name"
}
variable "num_cpus" {
description = "num cpus : "
}
variable "memory" {
type = number
default = 4096
}
#your ip gateway
variable "ipv4_gateway" {
type = string
default = "192.24.1.10"
}
#your netmask ip
variable "ipv4_netmask" {
type = number
default = 24
}