Skip to content

Commit

Permalink
remove acl reference
Browse files Browse the repository at this point in the history
  • Loading branch information
fredga committed Jun 13, 2023
1 parent 1bfded8 commit c1d838c
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 328 deletions.
1 change: 0 additions & 1 deletion terraform/cloudstack/input_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ func (i InputGenerator) Generate(state storage.State) (map[string]interface{}, e
"cloudstack_endpoint": state.CloudStack.Endpoint,
"cloudstack_zone": state.CloudStack.Zone,
"short_env_id": shortEnvID,
"secure": state.CloudStack.Secure,
"iso_segment": state.CloudStack.IsoSegment,
}
if state.CloudStack.NetworkVpcOffering != "" {
Expand Down
1 change: 0 additions & 1 deletion terraform/cloudstack/input_generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ var _ = Describe("InputGenerator", func() {
Expect(err).NotTo(HaveOccurred())

Expect(inputs).To(Equal(map[string]interface{}{
"secure": true,
"iso_segment": true,
"env_id": "some-env-id",
"cloudstack_endpoint": "http://my-cloudstack.com/client/api",
Expand Down
68 changes: 0 additions & 68 deletions terraform/cloudstack/templates/resources-security-groups-vars.tf

This file was deleted.

234 changes: 0 additions & 234 deletions terraform/cloudstack/templates/resources-security-groups.tf

This file was deleted.

4 changes: 0 additions & 4 deletions terraform/cloudstack/templates/resources-vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ variable "dns" {
]
}

variable "secure" {
default = false
}

variable "iso_segment" {
default = false
}
20 changes: 0 additions & 20 deletions terraform/cloudstack/templates/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,6 @@ resource "cloudstack_network" "bosh_subnet" {
display_text = "bosh-subnet"
network_offering = var.network_vpc_offering
zone = var.cloudstack_zone
acl_id = var.secure ? element(
concat(cloudstack_network_acl.bosh_subnet_sec_group.*.id, [""]),
0,
) : cloudstack_network_acl.allow_all.id
}

resource "cloudstack_network" "compilation_subnet" {
Expand All @@ -77,10 +73,6 @@ resource "cloudstack_network" "compilation_subnet" {
display_text = "compilation-subnet"
network_offering = var.network_vpc_offering
zone = var.cloudstack_zone
acl_id = var.secure ? element(
concat(cloudstack_network_acl.bosh_subnet_sec_group.*.id, [""]),
0,
) : cloudstack_network_acl.allow_all.id
}

resource "cloudstack_network" "control_plane" {
Expand All @@ -90,10 +82,6 @@ resource "cloudstack_network" "control_plane" {
display_text = "control-plane"
network_offering = var.network_vpc_offering
zone = var.cloudstack_zone
acl_id = var.secure ? element(
concat(cloudstack_network_acl.control_plane_sec_group.*.id, [""]),
0,
) : cloudstack_network_acl.allow_all.id
}

resource "cloudstack_network" "data_plane" {
Expand All @@ -103,10 +91,6 @@ resource "cloudstack_network" "data_plane" {
display_text = "data-plane"
network_offering = var.network_vpc_offering
zone = var.cloudstack_zone
acl_id = var.secure ? element(
concat(cloudstack_network_acl.data_plane_sec_group.*.id, [""]),
0,
) : cloudstack_network_acl.allow_all.id
}

resource "cloudstack_network" "data_plane_public" {
Expand All @@ -117,10 +101,6 @@ resource "cloudstack_network" "data_plane_public" {
display_text = "data-plane-public"
network_offering = var.network_vpc_offering
zone = var.cloudstack_zone
acl_id = var.secure ? element(
concat(cloudstack_network_acl.data_plane_sec_group.*.id, [""]),
0,
) : cloudstack_network_acl.allow_all.id
}

resource "cloudstack_ipaddress" "jumpbox_eip" {
Expand Down

0 comments on commit c1d838c

Please sign in to comment.