Skip to content

Commit 3f2a71c

Browse files
authored
renamed remaining control variables (#42)
* renamed remaining control variables Signed-off-by: Ali Mukadam <[email protected]> * renamed variables, fix typos, removed locl file, updated docs
1 parent 5623354 commit 3f2a71c

12 files changed

+67
-57
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# .tfvars files
99
*.tfvars
1010

11+
.terraform.lock.hcl
12+
1113
# provider file for testing - should be manually added
1214
provider.tf
1315

CHANGELOG.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ The format is based on {uri-changelog}[Keep a Changelog].
1010
= Unreleased
1111

1212
== New features
13+
* Changed default tag values
14+
* Renamed notification variables
15+
* Renamed variable operating_system_version --> operator_os_version
1316
* Renamed variable operator_upgrade --> upgrade_operator
1417
* Renamed variable timezone --> operator_timezone
1518
* Added support for Bastion service

README.adoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
:uri-repo: https://github.com/oracle-terraform-modules/terraform-oci-operator
77
:uri-bastion-repo: https://github.com/oracle-terraform-modules/terraform-oci-bastion
88

9-
:uri-rel-file-base: link:{uri-repo}/blob/master
10-
:uri-rel-tree-base: link:{uri-repo}/tree/master
9+
:uri-rel-file-base: link:{uri-repo}/blob/main
10+
:uri-rel-tree-base: link:{uri-repo}/tree/main
1111

1212
:uri-docs: {uri-rel-file-base}/docs
1313

@@ -38,12 +38,14 @@ The {uri-repo}[Terraform OCI Operator] for {uri-oci}[Oracle Cloud Infrastructure
3838

3939
It creates the following resources:
4040

41-
* A security list to allow ssh access from within the VCN only
4241
* A private subnet
43-
* A compute instance with optional instance_principal access
42+
* An NSG that allows access only through a bastion host
43+
* A compute instance:
44+
** accessible through the OCI Bastion Service
45+
** with optional instance_principal access
4446
* An optional notification via email
4547
46-
This module is primarily meant to be reusable and the operator instance is used for:
48+
This module is meant to be reusable and to be embedded in your terraform modules. The operator instance is used for:
4749

4850
1. performing post-provisioning tasks with Terraform or other automation tools
4951
2. provide administrators access without the need to upload api authentication keys (instance_principal)

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,43 @@
11
# Terraform OCI Operator for Oracle Cloud Infrastructure
22

3-
[changelog]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/master/CHANGELOG.adoc
4-
[contributing]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/master/CONTRIBUTING.adoc
5-
[contributors]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/master/CONTRIBUTORS.adoc
6-
[docs]: https://github.com/oracle-terraform-modules/terraform-oci-operator/tree/master/docs
3+
[changelog]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/main/CHANGELOG.adoc
4+
[contributing]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/main/CONTRIBUTING.adoc
5+
[contributors]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/main/CONTRIBUTORS.adoc
6+
[docs]: https://github.com/oracle-terraform-modules/terraform-oci-operator/tree/main/docs
77

8-
[license]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/master/LICENSE
8+
[license]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/main/LICENSE
99
[canonical_license]: https://oss.oracle.com/licenses/upl/
1010

1111
[oci]: https://cloud.oracle.com/cloud-infrastructure
1212
[oci_documentation]: https://docs.cloud.oracle.com/iaas/Content/home.htm
1313

1414
[oracle]: https://www.oracle.com
15-
[prerequisites]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/master/docs/prerequisites.adoc
15+
[prerequisites]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/main/docs/prerequisites.adoc
1616

17-
[quickstart]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/master/docs/quickstart.adoc
17+
[quickstart]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/main/docs/quickstart.adoc
1818
[repo]: https://github.com/oracle/terraform-oci-operator
1919
[reuse]: https://github.com/oracle/terraform-oci-operator/examples/db
2020
[subnets]: https://erikberg.com/notes/networks.html
2121
[terraform]: https://www.terraform.io
2222
[terraform_cidr_subnet]: http://blog.itsjustcode.net/blog/2017/11/18/terraform-cidrsubnet-deconstructed/
2323
[terraform_hashircorp_examples]: https://github.com/hashicorp/terraform-guides/tree/master/infrastructure-as-code/terraform-0.12-examples
2424
[terraform_oci]: https://www.terraform.io/docs/providers/oci/index.html
25-
[terraform_options]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/master/docs/terraformoptions.adoc
25+
[terraform_options]: https://github.com/oracle-terraform-modules/terraform-oci-operator/blob/main/docs/terraformoptions.adoc
2626
[terraform_oci_examples]: https://github.com/terraform-providers/terraform-provider-oci/tree/master/examples
2727
[terraform_oci_oke]: https://github.com/oracle-terraform-modules/terraform-oci-oke
2828

2929
The [Terraform OCI Operator][repo] for [Oracle Cloud Infrastructure] (OCI)[oci] provides a Terraform module that reuses an existing VCN and adds a compute instance to it.
3030

3131
It creates the following resources:
3232

33-
* A security list to allow ssh access from within the VCN only
3433
* A private subnet
35-
* A compute instance with optional instance_principal access
34+
* An NSG that allows access only through a bastion host
35+
* A compute instance:
36+
- accessible through the OCI Bastion Service
37+
- with optional instance_principal access
3638
* An optional notification via email
3739

38-
This module is primarily meant to be reusable and the operator instance is used for:
40+
This module is meant to be reusable and to be embedded in your terraform modules. The operator instance can be used for:
3941

4042
1. performing post-provisioning tasks with Terraform or other automation tools
4143
2. provide administrators access without the need to upload api authentication keys (instance_principal)

datasources.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ data "oci_core_vcn" "vcn" {
3434
data "oci_core_images" "oracle_images" {
3535
compartment_id = var.compartment_id
3636
operating_system = "Oracle Linux"
37-
operating_system_version = var.operating_system_version
37+
operating_system_version = var.operator_os_version
3838
shape = lookup(var.operator_shape, "shape", "VM.Standard.E4.Flex")
3939
sort_by = "TIMECREATED"
4040

docs/instanceprincipal.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
:uri-repo: https://github.com/oracle/terraform-oci-terraform-oci-operator
88

9-
:uri-rel-file-terraform-oci-operator: link:{uri-repo}/blob/master
10-
:uri-rel-tree-terraform-oci-operator: link:{uri-repo}/tree/master
9+
:uri-rel-file-terraform-oci-operator: link:{uri-repo}/blob/main
10+
:uri-rel-tree-terraform-oci-operator: link:{uri-repo}/tree/main
1111

1212
:uri-docs: {uri-rel-file-terraform-oci-operator}/docs
1313

docs/prerequisites.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
:uri-repo: https://github.com/oracle-terraform-modules/terraform-oci-operator
88

9-
:uri-rel-file-base: link:{uri-repo}/blob/master
10-
:uri-rel-tree-base: link:{uri-repo}/tree/master
9+
:uri-rel-file-base: link:{uri-repo}/blob/main
10+
:uri-rel-tree-base: link:{uri-repo}/tree/main
1111

1212
:uri-docs: {uri-rel-file-base}/docs
1313

docs/quickstart.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
:uri-bastion: https://github.com/oracle-terraform-modules/terraform-oci-bastion
88
:uri-repo: https://github.com/oracle-terraform-modules/terraform-oci-operator
9-
:uri-rel-file-base: link:{uri-repo}/blob/master
10-
:uri-rel-tree-base: link:{uri-repo}/tree/master
9+
:uri-rel-file-base: link:{uri-repo}/blob/main
10+
:uri-rel-tree-base: link:{uri-repo}/tree/main
1111
:uri-docs: {uri-rel-file-base}/docs
1212
:uri-oci-keys: https://docs.cloud.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm
1313
:uri-oci-ocids: https://docs.cloud.oracle.com/iaas/Content/API/Concepts/apisigningkey.htm#five
@@ -83,8 +83,8 @@ provider "oci" {
8383
* `operator_instance_principal`
8484
* `operator_shape`
8585
* `operator_upgrade`
86-
* `notification_enabled`
87-
* `notification_endpoint`
86+
* `enable_operator_notification`
87+
* `operator_notification_endpoint`
8888

8989
. Run Terraform:
9090

docs/terraformoptions.adoc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
:sectnums:
66
:uri-repo: https://github.com/oracle-terraform-modules/terraform-oci-operator
77

8-
:uri-rel-file-base: link:{uri-repo}/blob/master
9-
:uri-rel-tree-base: link:{uri-repo}/tree/master
8+
:uri-rel-file-base: link:{uri-repo}/blob/main
9+
:uri-rel-tree-base: link:{uri-repo}/tree/main
1010

1111
:uri-docs: {uri-rel-file-base}/docs
1212
:uri-oci-region: https://docs.cloud.oracle.com/iaas/Content/General/Concepts/regions.htm
@@ -178,7 +178,7 @@ Ensure you review the {uri-terraform-dependencies}[dependencies].
178178
|""
179179
|
180180

181-
|`timezone`
181+
|`operator_timezone`
182182
|The preferred timezone for the operator host. {uri-timezones}[List of timezones]
183183
|e.g. Australia/Sydney
184184
|The preferred timezone for the operator host. {uri-timezones}[List of timezones]
@@ -195,22 +195,22 @@ Ensure you review the {uri-terraform-dependencies}[dependencies].
195195
|Values
196196
|Default
197197

198-
|`notification_enabled`
198+
|`enable_operator_notification`
199199
|Whether to enable ONS notification for the operator host.
200200
|true/false
201201
|false
202202

203-
|`notification_endpoint`
204-
|The subscription notification endpoint. Email address to be notified. *Required if notification_enabled = true* ..
203+
|`operator_notification_endpoint`
204+
|The subscription notification endpoint. Email address to be notified. *Required if enable_operator_notification = true* ..
205205
|
206206
|Autonomous
207207

208-
|`notification_protocol`
208+
|`operator_notification_protocol`
209209
|The notification protocol used.
210210
|
211211
|EMAIL
212212

213-
|`notification_topic`
213+
|`operator_notification_topic`
214214
|The name of the notification topic.
215215
|
216216
|operator
@@ -232,7 +232,7 @@ Ensure you review the {uri-terraform-dependencies}[dependencies].
232232
[source]
233233
----
234234
tags = {
235-
department = "finance"
235+
access = "restricted"
236236
environment = "dev"
237237
role = "operator"
238238
}

locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ locals {
1616
operator_script_template = base64gzip(
1717
templatefile("${path.module}/scripts/operator.template.sh",
1818
{
19-
ol = var.operating_system_version
19+
ol = var.operator_os_version
2020
}
2121
)
2222
)

0 commit comments

Comments
 (0)