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

Commit 1576ecc

Browse files
committed
Revert "Fixes for Terraform v0.12"
This reverts commit 08c297b.
1 parent 08c297b commit 1576ecc

File tree

4 files changed

+29
-19
lines changed

4 files changed

+29
-19
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: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,39 +76,48 @@ 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+
8384
protocol = "6"
8485
source = "0.0.0.0/0"
85-
},
86-
{tcp_options = {
86+
}]
87+
88+
ingress_security_rules = [{
89+
tcp_options {
8790
"max" = 18088
8891
"min" = 18088
8992
}
93+
9094
protocol = "6"
9195
source = "0.0.0.0/0"
92-
},
93-
{tcp_options = {
96+
}]
97+
98+
ingress_security_rules = [{
99+
tcp_options {
94100
"max" = 19888
95101
"min" = 19888
96102
}
103+
97104
protocol = "6"
98105
source = "0.0.0.0/0"
99-
},
106+
}]
100107

101-
{tcp_options = {
108+
ingress_security_rules = [{
109+
tcp_options {
102110
"max" = 22
103111
"min" = 22
104112
}
113+
105114
protocol = "6"
106115
source = "0.0.0.0/0"
107-
},
108-
{
116+
}]
117+
118+
ingress_security_rules = [{
109119
protocol = "6"
110120
source = "${var.VPC-CIDR}"
111-
}
112121
}]
113122
}
114123

@@ -120,8 +129,9 @@ resource "oci_core_security_list" "PrivateSubnet" {
120129
egress_security_rules = [{
121130
destination = "0.0.0.0/0"
122131
protocol = "6"
123-
},
124-
{
132+
}]
133+
134+
egress_security_rules = [{
125135
protocol = "6"
126136
destination = "${var.VPC-CIDR}"
127137
}]
@@ -143,7 +153,7 @@ resource "oci_core_security_list" "BastionSubnet" {
143153
}]
144154

145155
ingress_security_rules = [{
146-
tcp_options = {
156+
tcp_options {
147157
"max" = 22
148158
"min" = 22
149159
}

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)