-
Notifications
You must be signed in to change notification settings - Fork 35
/
variables.tf
173 lines (163 loc) · 5.48 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
# Copyright 2017, 2019, 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 "oci_base_provider" {
type = object({
api_fingerprint = string
api_private_key_path = string
region = string
tenancy_id = string
user_id = string
})
description = "oci provider parameters"
}
# general oci parameters
variable "oci_base_general" {
type = object({
compartment_id = string
label_prefix = string
})
description = "general oci parameters"
}
# networking parameters
variable "oci_base_vcn" {
type = object({
create_drg = bool
drg_display_name = string
internet_gateway_enabled = bool
lockdown_default_seclist = bool
nat_gateway_enabled = bool
nat_gateway_public_ip_id = string
service_gateway_enabled = bool
tags = map(any)
vcn_cidr = string
vcn_dns_label = string
vcn_name = string
internet_gateway_route_rules = list(any)
nat_gateway_route_rules = list(any)
})
description = "VCN parameters"
default = {
create_drg = false
drg_display_name = "drg"
internet_gateway_enabled = true
lockdown_default_seclist = true
nat_gateway_enabled = true
nat_gateway_public_ip_id = "none"
service_gateway_enabled = true
tags = null
vcn_cidr = "10.0.0.0/16"
vcn_dns_label = ""
vcn_name = ""
internet_gateway_route_rules = []
nat_gateway_route_rules = []
}
}
# bastion
variable "oci_base_bastion" {
type = object({
availability_domain = number
bastion_access = string
bastion_enabled = bool
bastion_image_id = string
bastion_operating_system_version = string
bastion_shape = map(any)
bastion_state = string
bastion_upgrade = bool
netnum = number
newbits = number
notification_enabled = bool
notification_endpoint = string
notification_protocol = string
notification_topic = string
ssh_private_key_path = string
ssh_public_key = string
ssh_public_key_path = string
tags = map(any)
timezone = string
})
description = "bastion host parameters"
default = {
availability_domain = 1
bastion_access = "ANYWHERE"
bastion_enabled = false
bastion_image_id = "Autonomous"
bastion_operating_system_version = "7.9"
bastion_shape = {
# shape = "VM.Standard.E2.2"
shape = "VM.Standard.E3.Flex",
ocpus = 1,
memory = 4,
boot_volume_size = 50
}
bastion_state = "RUNNING"
bastion_upgrade = true
netnum = 0
newbits = 14
notification_enabled = false
notification_endpoint = ""
notification_protocol = "EMAIL"
notification_topic = "bastion"
ssh_private_key_path = ""
ssh_public_key = ""
ssh_public_key_path = ""
tags = {
role = "bastion"
}
timezone = "Australia/Sydney"
}
}
# operator
variable "oci_base_operator" {
type = object({
availability_domain = number
operator_enabled = bool
operator_image_id = string
operator_shape = map(any)
operator_state = string
operating_system_version = string
operator_upgrade = bool
enable_instance_principal = bool
netnum = number
newbits = number
notification_enabled = bool
notification_endpoint = string
notification_protocol = string
notification_topic = string
ssh_private_key_path = string
ssh_public_key = string
ssh_public_key_path = string
tags = map(any)
timezone = string
})
description = "operator host parameters"
default = {
availability_domain = 1
operator_enabled = false
operator_image_id = "Oracle"
operator_shape = {
# shape = "VM.Standard.E2.2"
shape = "VM.Standard.E3.Flex",
ocpus = 1,
memory = 4,
boot_volume_size = 50
}
operator_state = "RUNNING"
operating_system_version = "8"
operator_upgrade = true
enable_instance_principal = false
netnum = 1
newbits = 14
notification_enabled = false
notification_endpoint = ""
notification_protocol = "EMAIL"
notification_topic = "operator"
ssh_private_key_path = ""
ssh_public_key = ""
ssh_public_key_path = ""
tags = {
role = "operator"
}
timezone = "Australia/Sydney"
}
}