-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
128 lines (124 loc) · 2.77 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
# Local variables
locals {
scsi_type = "lsilogic-sas"
firmware = "efi"
secure_boot = true
timeout = 30
}
# vSphere information
variable "vsphere_datacenter" {
description = "vSphere datacenter to use"
nullable = false
type = string
}
variable "vsphere_host" {
description = "ESXI host in vCenter for compute resources"
nullable = false
type = string
}
# Hardware information
variable "cpus" {
description = "The number of CPUs on the virtual machine"
type = number
default = 2
}
variable "cores" {
description = "The number of cores per CPU"
type = number
default = 2
}
variable "memory" {
description = "Memory in MB"
type = number
default = 4112
}
variable "disk_size" {
description = "Disk size of VM to create"
type = number
default = 60
}
# Domain controller information
variable "dc_name" {
description = "Name of VM"
nullable = false
type = string
}
variable "dc_template" {
description = "Template to use"
nullable = false
type = string
}
variable "network" {
description = "Network to put VM"
nullable = false
type = string
}
variable "dc_guest_id" {
description = "Guest ID of the virtual machine"
nullable = false
type = string
}
variable "ipv4_address" {
description = "Address to give to the virtual machine"
nullable = false
type = string
}
variable "ipv4_netmask" {
description = "Subnet of network in CIDR format"
nullable = false
type = number
}
variable "ipv4_gateway" {
description = "Gateway of network"
nullable = false
type = string
}
variable "folder" {
description = "Where to place the virtual machine"
nullable = false
type = string
}
variable "dns_domain_name" {
description = "Domain name to create"
nullable = false
type = string
}
variable "dsrm_password" {
description = "DSRM password for domain"
nullable = false
type = string
sensitive = true
}
variable "domain_admin_user" {
description = "Domain admin username for domain"
nullable = false
type = string
sensitive = true
}
variable "domain_admin_password" {
description = "Domain admin password for domain"
nullable = false
type = string
sensitive = true
}
# Workstation information
variable "instances" {
description = "Number of workstation instances"
nullable = false
type = number
}
variable "ws_name" {
description = "Name of VM"
nullable = false
type = string
}
variable "ws_template" {
description = "Template to use"
nullable = false
type = string
}
variable "ws_guest_id" {
description = "Guest ID of the virtual machine"
nullable = false
type = string
}