Skip to content

Commit 653fb69

Browse files
authored
Upgraded module to use operator module 2.2.0 so we can control the state of the operator instance without having to destroy it (#94)
1 parent f294f16 commit 653fb69

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

CHANGELOG.adoc

+3
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.3.1 (July 22, 2021)
11+
* Upgraded module to use operator module 2.2.0 so we can control the state of the operator instance without having to destroy it.
12+
1013
== 2.3.0 (July 21, 2021)
1114
* Upgraded module to use VCN module 2.3.0 so we can use reserved public IP address for the NAT Gateway
1215

docs/terraformoptions.adoc

+5
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@ tags = {
422422
boot_volume_size=50
423423
}`
424424

425+
|`operator_state`
426+
|The state of the operator instance whether `RUNNING` or `STOPPED`.
427+
| `RUNNING`/`STOPPED`
428+
|`RUNNING`
429+
425430
|`operating_system_version`
426431
|The Oracle Linux version.
427432
|"8"

main.tf

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ module "bastion" {
7777

7878
module "operator" {
7979
source = "oracle-terraform-modules/operator/oci"
80-
version = "2.1.1"
80+
version = "2.2.0"
8181

8282
# provider identity parameters
8383
api_fingerprint = var.oci_base_provider.api_fingerprint
@@ -102,6 +102,7 @@ module "operator" {
102102
operator_image_id = var.oci_base_operator.operator_image_id
103103
operator_instance_principal = var.oci_base_operator.enable_instance_principal
104104
operator_shape = var.oci_base_operator.operator_shape
105+
operator_state = var.oci_base_operator.operator_state
105106
operating_system_version = var.oci_base_operator.operating_system_version
106107
operator_upgrade = var.oci_base_operator.operator_upgrade
107108
ssh_public_key = var.oci_base_operator.ssh_public_key

terraform.tfvars.example

+2-1
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,12 @@ oci_base_operator = {
119119
operator_image_id = "Oracle"
120120
operator_shape = {
121121
# shape = "VM.Standard.E2.2"
122-
shape="VM.Standard.E3.Flex",
122+
shape="VM.Standard.E4.Flex",
123123
ocpus=1,
124124
memory=4,
125125
boot_volume_size=50
126126
}
127+
operator_state = "RUNNING"
127128
operating_system_version = "8"
128129
operator_upgrade = false
129130
enable_instance_principal = true

variables.tf

+2
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ variable "oci_base_operator" {
124124
operator_enabled = bool
125125
operator_image_id = string
126126
operator_shape = map(any)
127+
operator_state = string
127128
operating_system_version = string
128129
operator_upgrade = bool
129130
enable_instance_principal = bool
@@ -151,6 +152,7 @@ variable "oci_base_operator" {
151152
memory = 4,
152153
boot_volume_size = 50
153154
}
155+
operator_state = "RUNNING"
154156
operating_system_version = "8"
155157
operator_upgrade = true
156158
enable_instance_principal = false

0 commit comments

Comments
 (0)