-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
153 lines (127 loc) · 4.46 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
variable "gcp_project" {
description = "The name of the gcp project to use"
type = string
}
variable "gcp_region" {
description = "The name of the gcp region to use"
type = string
}
variable "gcp_zone" {
description = "The name of the gcp zone to use"
type = string
}
variable "network_routing_mode" {
description = "The routing mode to use for the network"
type = string
default = "GLOBAL"
}
variable "subnet_cidr" {
description = "The CIDR of the subnet that will be created"
type = string
default = "10.10.10.0/24"
}
variable "tags" {
description = "A map of tags to pass through to the underlying resources"
type = map
default = {}
}
########### connection settings ##################
variable "user_name" {
description = "The ssh or winrm user name, used to create users on the target servers, if the create_user variable is set to true"
type = string
}
variable "user_pass" {
description = "The password to set for the ssh or winrm user"
type = string
default = ""
}
variable "create_user" {
description = "Should the user be created"
type = bool
default = true
}
variable "user_public_key" {
description = "If set on linux systems and the create_user variable is true then the content from the file path provided in this variable will be added to the authorized_keys folder of the newly created user"
type = string
default = ""
}
variable "user_private_key" {
description = "This needs to be set to the path of the private key pair that matches the provided public key. it is used when creating the guacamole connection data. Setting it allowd the guacamole client/server to ssh to the targets. can be ignored if using ssh passwords"
type = string
default = ""
}
variable "populate_hosts" {
description = "Set an entry in /etc/hosts for equivilent to `echo \"$(hostname -I) $(hostname)\" >> /etc/hosts`"
type = bool
default = false
}
variable "tmp_path" {
description = "The location of the temp path to use for downloading installers and executing scripts"
type = string
default = "/var/tmp/server_bootstrap"
}
variable "set_hostname" {
description = "Should we set the hostname to the instance name on linux systems"
type = bool
default = true
}
variable "ip_hostname" {
description = "Should we append the ip address to help make hostnames unique when creating a batch of linux servers"
type = bool
default = true
}
variable "disk_type" {
description = "URL of the disk type resource describing which disk type to use to create the disk. Provide this when creating the disk"
type = string
default = "pd-ssd"
}
variable "disk_size" {
description = "Size of the persistent disk, specified in GB. You can specify this field when creating a persistent disk using the image or snapshot paramete"
type = number
default = 40
}
variable "disk_image" {
description = "the image from which to initialize this disk"
type = string
default = "centos-7-v20200205"
}
variable "machine_type" {
description = "The machine type to build e.g. n1-standard-4."
type = string
default = "n1-standard-4"
}
variable "auto_delete_disk" {
description = "Should the persistent volume be deleted upon termination of the vm"
type = bool
default = false
}
variable "chef_automate_count" {
description = "the number of chef automate servers to create: multiple instances no implemented yet. do not use more than one"
type = number
default = 1
}
variable "chef_automate_version" {
description = "The version of chef automate to install. defaults to latest"
type = string
default = "latest"
}
variable "chef_automate_license" {
description = "The chef automate license string, can be left blank for no license"
type = string
default = ""
}
variable "chef_automate_data_collector_token" {
description = "The data collector token to use for chef automate. can be left blank for a randomly generated token"
type = string
default = ""
}
variable "chef_automate_admin_password" {
description = "The admin password for chef automate. Can be left blank for a randomly generated password"
type = string
default = ""
}
variable "chef_automate_enabled_profiles" {
description = "A list of profiles to enable on the chef automate server"
type = list
default = []
}