-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathvariables.tf
171 lines (140 loc) · 4.49 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
# Copyright (c) 2019, 2022 Oracle Corporation and/or affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
# provider parameters
variable "tenancy_id" {
description = "tenancy id where to create the sources"
type = string
default = ""
}
# general oci parameters
variable "compartment_id" {
description = "compartment id where to create all resources"
type = string
}
variable "label_prefix" {
description = "a string that will be prepended to all resources"
type = string
default = "none"
}
# network parameters
variable "assign_dns" {
default = true
description = "Whether to assign DNS records for operator subnet"
type = bool
}
variable "availability_domain" {
description = "the AD to place the operator host"
default = 1
type = number
}
variable "nat_route_id" {
description = "the id of the route table to the nat gateway."
type = string
}
variable "netnum" {
description = "0-based index of the operator subnet when the VCN's CIDR is masked with the corresponding newbit value."
default = 33
type = number
}
variable "newbits" {
description = "The difference between the VCN's netmask and the desired operator subnet mask"
default = 13
type = number
}
variable "nsg_ids" {
description = "Optional list of network security groups that the operator will be part of"
type = list(string)
default = []
}
variable "vcn_id" {
description = "The id of the VCN to use when creating the operator resources."
type = string
}
# operator host parameters
variable "enable_operator_instance_principal" {
description = "whether to enable instance_principal on the operator"
default = false
type = bool
}
variable "freeform_tags" {
description = "Freeform tags for operator"
default = {
access = "restricted"
environment = "dev"
role = "operator"
}
type = map(any)
}
variable "operator_image_id" {
description = "Provide a custom image id for the operator host or leave as Oracle."
default = "Oracle"
type = string
}
variable "operator_os_version" {
description = "The version of the Oracle Linux to use."
default = "8"
type = string
}
variable "operator_shape" {
description = "The shape of the operator instance."
default = {
shape = "VM.Standard.E4.Flex", ocpus = 1, memory = 4, boot_volume_size = 50
}
type = map(any)
}
variable "operator_state" {
description = "The target state for the instance. Could be set to RUNNING or STOPPED. (Updatable)"
default = "RUNNING"
type = string
}
variable "operator_timezone" {
description = "The preferred timezone for the operator host."
default = "Australia/Sydney"
type = string
}
variable "ssh_public_key" {
description = "the content of the ssh public key used to access the operator. 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 operator. set this or the ssh_public_key"
default = ""
type = string
}
variable "upgrade_operator" {
description = "Whether to upgrade the operator host packages after provisioning. It's useful to set this to false during development/testing so the operator is provisioned faster."
default = false
type = bool
}
variable "enable_pv_encryption_in_transit" {
description = "Whether to enable in-transit encryption for the data volume's paravirtualized attachment. The default value is false"
default = false
type = bool
}
variable "boot_volume_encryption_key" {
description = "The OCID of the OCI KMS key to assign as the master encryption key for the boot volume."
default = ""
type = string
}
# operator notification
variable "enable_operator_notification" {
description = "Whether to enable ONS notification for the operator host."
default = false
type = bool
}
variable "operator_notification_endpoint" {
description = "The subscription notification endpoint. Email address to be notified."
default = null
type = string
}
variable "operator_notification_protocol" {
description = "The notification protocol used."
default = "EMAIL"
type = string
}
variable "operator_notification_topic" {
description = "The name of the notification topic"
default = "operator"
type = string
}