-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
208 lines (176 loc) · 5.44 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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
# ---------------------------------------------------------------------------
# Trivadis AG, Infrastructure Managed Services
# Saegereistrasse 29, 8152 Glattbrugg, Switzerland
# ---------------------------------------------------------------------------
# Name.......: variables.tf
# Author.....: Stefan Oehrli (oes) [email protected]
# Editor.....: Stefan Oehrli
# Date.......: 2020.10.12
# Revision...:
# Purpose....: Variable file for the terraform module tvdlab compute.
# Notes......: --
# Reference..: --
# License....: Apache License Version 2.0, January 2004 as shown
# at http://www.apache.org/licenses/
# ---------------------------------------------------------------------------
# provider identity parameters ----------------------------------------------
variable "tenancy_ocid" {
description = "tenancy id where to create the resources"
type = string
}
variable "region" {
# List of regions: https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm#ServiceAvailabilityAcrossRegions
description = "The OCI region where resources will be created"
type = string
}
# general oci parameters ----------------------------------------------------
variable "compartment_id" {
description = "OCID of the compartment where to create all resources"
type = string
}
variable "label_prefix" {
description = "A string that will be prepended to all resources"
type = string
default = "none"
}
variable "resource_name" {
description = "user-friendly string to name all resource. If undefined it will be derived from compartment name. "
type = string
default = ""
}
variable "ad_index" {
description = "The index of the availability domain. This is used to identify the availability_domain place the compute instances."
default = 1
type = number
}
variable "defined_tags" {
description = "Defined tags for this resource"
type = map(any)
default = {}
}
variable "tags" {
description = "A simple key-value pairs to tag the resources created"
type = map(any)
default = {}
}
# Host Parameter ----------------------------------------------------
variable "host_enabled" {
description = "whether to create the compute instance or not."
default = true
type = bool
}
variable "host_name" {
description = "Name portion of host"
default = "host"
type = string
}
variable "host_public_ip" {
description = "whether to assigne a public IP or not."
default = false
type = bool
}
variable "host_private_ip" {
description = "Private IP for host."
default = "10.0.1.6"
type = string
}
variable "host_image_id" {
description = "Provide a custom image id for the host or leave as OEL (Oracle Enterprise Linux)."
default = "OEL"
type = string
}
variable "host_os" {
description = "Base OS for the host."
default = "Oracle Linux"
type = string
}
variable "host_os_version" {
description = "Define Base OS version for the host."
default = "7.8"
type = string
}
variable "hosts_file" {
description = "path to a custom /etc/hosts which has to be appended"
default = ""
type = string
}
variable "yum_upgrade" {
description = "Enable YUM upgrade during bootstrap / cloud-init"
default = true
type = bool
}
variable "host_shape" {
description = "The shape of admin instance."
default = "VM.Standard.E3.Flex"
type = string
}
variable "host_ocpus" {
description = "The ocpus for the shape."
default = 1
type = number
}
variable "host_memory_in_gbs" {
description = "The memory in gbs for the shape."
default = 8
type = number
}
variable "host_boot_volume_size" {
description = "Size of the boot volume."
default = 150
type = number
}
variable "host_volume_enabled" {
description = "whether to create an additional volume or not."
default = false
type = bool
}
variable "host_volume_source" {
description = "Source block volume to clone from."
default = ""
type = string
}
variable "host_volume_attachment_type" {
description = "The type of volume."
default = "paravirtualized"
type = string
}
variable "host_volume_size" {
description = "Size of the additional volume."
default = 256
type = number
}
variable "host_state" {
description = "Whether the host should be either RUNNING or STOPPED state. "
default = "RUNNING"
}
variable "host_bootstrap" {
description = "Bootstrap script."
default = ""
type = string
}
variable "host_subnet" {
description = "List of subnets for the host hosts"
type = list(string)
}
variable "ssh_public_key" {
description = "the content of the ssh public key used to access the host. set this or the ssh_public_key_path"
default = ""
type = string
}
variable "ssh_public_key_path" {
description = "path to the ssh public key used to access the host. set this or the ssh_public_key"
default = ""
type = string
}
# Trivadis LAB specific parameter -------------------------------------------
variable "tvd_participants" {
description = "The number of VCN to create"
type = number
default = 1
}
variable "tvd_domain" {
description = "The domain name of the LAB environment"
type = string
default = "trivadislabs.com"
}
# --- EOF -------------------------------------------------------------------