Skip to content

Commit 3a97c9d

Browse files
authored
updated base module to use operator 2.1 so we can use OL8 for operator (#83)
Also updated docs and default networking values for bastion and operator subnets
1 parent a407ec7 commit 3a97c9d

File tree

5 files changed

+60
-13
lines changed

5 files changed

+60
-13
lines changed

CHANGELOG.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ All notable changes to this project are documented in this file.
77

88
The format is based on {uri-changelog}[Keep a Changelog].
99

10+
== 2.1.0 (March 22, 2021)
11+
* Upgraded module to use operator 2.1 so we can use OL8 for operator
12+
1013
== 2.0.0 (December 8, 2020)
1114
* Set minimum version to Terraform 0.13 (#78)
1215
* Use all Terraform 0.13 submodules (#80)

docs/terraformoptions.adoc

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,24 +187,24 @@ Configuration Terraform Options:
187187
|The difference between the VCN's netmask and the desired subnets' masks specified in the form of a map. The values of the map are used as the newbits parameter in the {uri-terraform-cidrsubnet}[cidrsubnet] Terraform function to calculate each subnet's mask.
188188
|[source]
189189
----
190-
13
190+
14
191191
----
192192
|
193193
[source]
194194
----
195-
13
195+
14
196196
----
197197

198198
|`netnum`
199199
|0-based index of the subnet when the VCN's CIDR is masked with the corresponding newbit value and specified in the form of a map. Used to define the boundaries of the subnet. The values of the map are used as the netnum parameter in the {uri-terraform-cidrsubnet}[cidrsubnet] Terraform function.
200200
|[source]
201201
----
202-
32
202+
0
203203
----
204204
|
205205
[source]
206206
----
207-
32
207+
0
208208
----
209209

210210
|`notification_enabled`
@@ -280,6 +280,30 @@ tags = {
280280
|true/false
281281
|false
282282

283+
|`newbits`
284+
|The difference between the VCN's netmask and the desired subnets' masks specified in the form of a map. The values of the map are used as the newbits parameter in the {uri-terraform-cidrsubnet}[cidrsubnet] Terraform function to calculate each subnet's mask.
285+
|[source]
286+
----
287+
14
288+
----
289+
|
290+
[source]
291+
----
292+
14
293+
----
294+
295+
|`netnum`
296+
|0-based index of the subnet when the VCN's CIDR is masked with the corresponding newbit value and specified in the form of a map. Used to define the boundaries of the subnet. The values of the map are used as the netnum parameter in the {uri-terraform-cidrsubnet}[cidrsubnet] Terraform function.
297+
|[source]
298+
----
299+
0
300+
----
301+
|
302+
[source]
303+
----
304+
0
305+
----
306+
283307
|`notification_enabled`
284308
|Whether to enable ONS notification for the operator host. *Do not enable for now*.
285309
|true/false
@@ -320,6 +344,22 @@ tags = {
320344
boot_volume_size=50
321345
}`
322346

347+
|`operating_system_version`
348+
|The Oracle Linux version.
349+
|"8"
350+
|"8"
351+
352+
|`ssh_private_key_path`
353+
|path to ssh private key. This ssh key is used to authenticate and log into the bastion host. Must be the private key of the public key provided below. *Required* if bastion is enabled.
354+
355+
|
356+
|None
357+
358+
|`ssh_public_key_path`
359+
|path to ssh public key. The ssh key is used when provisioning the bastion host. Must be the public key of the private key provided above. *Required* if bastion is enabled.
360+
|
361+
|None
362+
323363
|`tags`
324364
|The tags to apply on the bastion resources.
325365
|map(any)

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ module "bastion" {
6767

6868
module "operator" {
6969
source = "oracle-terraform-modules/operator/oci"
70-
version = "2.0.0"
70+
version = "2.1.0"
7171

7272
# provider identity parameters
7373
api_fingerprint = var.oci_base_provider.api_fingerprint
@@ -92,6 +92,7 @@ module "operator" {
9292
operator_image_id = var.oci_base_operator.operator_image_id
9393
operator_instance_principal = var.oci_base_operator.enable_instance_principal
9494
operator_shape = var.oci_base_operator.operator_shape
95+
operating_system_version = var.oci_base_operator.operating_system_version
9596
operator_upgrade = var.oci_base_operator.operator_upgrade
9697
ssh_public_key = var.oci_base_operator.ssh_public_key
9798
ssh_public_key_path = var.oci_base_operator.ssh_public_key_path

terraform.tfvars.example

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ oci_base_bastion = {
4545
boot_volume_size=50
4646
}
4747
bastion_upgrade = true
48-
netnum = 32
49-
newbits = 13
48+
netnum = 0
49+
newbits = 14
5050
notification_enabled = false
5151
notification_endpoint = ""
5252
notification_protocol = "EMAIL"
@@ -74,10 +74,11 @@ oci_base_operator = {
7474
memory=4,
7575
boot_volume_size=50
7676
}
77+
operating_system_version = "8"
7778
operator_upgrade = false
7879
enable_instance_principal = true
79-
netnum = 33
80-
newbits = 13
80+
netnum = 1
81+
newbits = 14
8182
notification_enabled = false
8283
notification_endpoint = ""
8384
notification_protocol = "EMAIL"

variables.tf

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ variable "oci_base_bastion" {
8484
boot_volume_size = 50
8585
}
8686
bastion_upgrade = true
87-
netnum = 13
88-
newbits = 32
87+
netnum = 0
88+
newbits = 14
8989
notification_enabled = false
9090
notification_endpoint = ""
9191
notification_protocol = "EMAIL"
@@ -108,6 +108,7 @@ variable "oci_base_operator" {
108108
operator_enabled = bool
109109
operator_image_id = string
110110
operator_shape = map(any)
111+
operating_system_version = string
111112
operator_upgrade = bool
112113
enable_instance_principal = bool
113114
netnum = number
@@ -134,10 +135,11 @@ variable "oci_base_operator" {
134135
memory = 4,
135136
boot_volume_size = 50
136137
}
138+
operating_system_version = "8"
137139
operator_upgrade = true
138140
enable_instance_principal = false
139-
netnum = 33
140-
newbits = 13
141+
netnum = 1
142+
newbits = 14
141143
notification_enabled = false
142144
notification_endpoint = ""
143145
notification_protocol = "EMAIL"

0 commit comments

Comments
 (0)