Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 08c297b

Browse files
committed
Fixes for Terraform v0.12
1 parent 33371ad commit 08c297b

File tree

4 files changed

+19
-29
lines changed

4 files changed

+19
-29
lines changed

terraform/compute.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "bastion" {
2-
source = "modules/bastion"
2+
source = "./modules/bastion"
33
instances = "1"
44
region = "${var.region}"
55
compartment_ocid = "${var.compartment_ocid}"
@@ -17,7 +17,7 @@ module "bastion" {
1717
}
1818

1919
module "utility" {
20-
source = "modules/utility"
20+
source = "./modules/utility"
2121
instances = "1"
2222
region = "${var.region}"
2323
compartment_ocid = "${var.compartment_ocid}"
@@ -35,7 +35,7 @@ module "utility" {
3535
}
3636

3737
module "master" {
38-
source = "modules/master"
38+
source = "./modules/master"
3939
instances = "${var.master_node_count}"
4040
region = "${var.region}"
4141
compartment_ocid = "${var.compartment_ocid}"
@@ -53,7 +53,7 @@ module "master" {
5353
}
5454

5555
module "worker" {
56-
source = "modules/worker"
56+
source = "./modules/worker"
5757
instances = "${var.worker_node_count}"
5858
region = "${var.region}"
5959
compartment_ocid = "${var.compartment_ocid}"

terraform/modules/network/main.tf

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -76,48 +76,39 @@ resource "oci_core_security_list" "PublicSubnet" {
7676
}]
7777

7878
ingress_security_rules = [{
79-
tcp_options {
79+
{tcp_options = {
8080
"max" = 7180
8181
"min" = 7180
8282
}
83-
8483
protocol = "6"
8584
source = "0.0.0.0/0"
86-
}]
87-
88-
ingress_security_rules = [{
89-
tcp_options {
85+
},
86+
{tcp_options = {
9087
"max" = 18088
9188
"min" = 18088
9289
}
93-
9490
protocol = "6"
9591
source = "0.0.0.0/0"
96-
}]
97-
98-
ingress_security_rules = [{
99-
tcp_options {
92+
},
93+
{tcp_options = {
10094
"max" = 19888
10195
"min" = 19888
10296
}
103-
10497
protocol = "6"
10598
source = "0.0.0.0/0"
106-
}]
99+
},
107100

108-
ingress_security_rules = [{
109-
tcp_options {
101+
{tcp_options = {
110102
"max" = 22
111103
"min" = 22
112104
}
113-
114105
protocol = "6"
115106
source = "0.0.0.0/0"
116-
}]
117-
118-
ingress_security_rules = [{
107+
},
108+
{
119109
protocol = "6"
120110
source = "${var.VPC-CIDR}"
111+
}
121112
}]
122113
}
123114

@@ -129,9 +120,8 @@ resource "oci_core_security_list" "PrivateSubnet" {
129120
egress_security_rules = [{
130121
destination = "0.0.0.0/0"
131122
protocol = "6"
132-
}]
133-
134-
egress_security_rules = [{
123+
},
124+
{
135125
protocol = "6"
136126
destination = "${var.VPC-CIDR}"
137127
}]
@@ -153,7 +143,7 @@ resource "oci_core_security_list" "BastionSubnet" {
153143
}]
154144

155145
ingress_security_rules = [{
156-
tcp_options {
146+
tcp_options = {
157147
"max" = 22
158148
"min" = 22
159149
}

terraform/network.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "network" {
2-
source = "modules/network"
2+
source = "./modules/network"
33
tenancy_ocid = "${var.tenancy_ocid}"
44
compartment_ocid = "${var.compartment_ocid}"
55
availability_domain = "${var.availability_domain}"

terraform/outputs.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
output "DEPLOYMENT COMMAND" { value = "python ../scripts/deploy_on_oci.py -B -m ${module.utility.public-ip} -d ${module.worker.block-volume-count} -w ${var.worker_instance_shape}" }
1+
output "DEPLOYMENT_COMMAND" { value = "python ../scripts/deploy_on_oci.py -B -m ${module.utility.public-ip} -d ${module.worker.block-volume-count} -w ${var.worker_instance_shape}" }

0 commit comments

Comments
 (0)