Skip to content

Commit 2c383bf

Browse files
kinjelomrkoster
authored andcommitted
Update resources.tf
1 parent 6a500a2 commit 2c383bf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

terraform/openstack/templates/resources.tf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@ resource "openstack_networking_network_v2" "bosh" {
1111
admin_state_up = "true"
1212
}
1313

14+
# subnet
1415
resource "openstack_networking_subnet_v2" "bosh_subnet" {
1516
region = "${var.region_name}"
1617
network_id = "${openstack_networking_network_v2.bosh.id}"
17-
cidr = "10.0.1.0/24"
18+
cidr = "${var.subnet_cidr}"
1819
ip_version = 4
1920
name = "${var.env_id}-subnet"
2021
allocation_pool {
21-
start = "10.0.1.200"
22-
end = "10.0.1.254"
22+
start = "${var.subnet_allocation_pool_start}"
23+
end = "${var.subnet_allocation_pool_end}"
2324
}
24-
gateway_ip = "10.0.1.1"
25+
gateway_ip = "${var.subnet_gateway_ip}"
2526
enable_dhcp = "true"
2627
dns_nameservers = "${var.dns_nameservers}"
2728
}

0 commit comments

Comments
 (0)