File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
terraform/openstack/templates Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,18 @@ resource "openstack_networking_network_v2" "bosh" {
11
11
admin_state_up = " true"
12
12
}
13
13
14
+ # subnet
14
15
resource "openstack_networking_subnet_v2" "bosh_subnet" {
15
16
region = " ${ var . region_name } "
16
17
network_id = " ${ openstack_networking_network_v2 . bosh . id } "
17
- cidr = " 10.0.1.0/24 "
18
+ cidr = " ${ var . subnet_cidr } "
18
19
ip_version = 4
19
20
name = " ${ var . env_id } -subnet"
20
21
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 } "
23
24
}
24
- gateway_ip = " 10.0.1.1 "
25
+ gateway_ip = " ${ var . subnet_gateway_ip } "
25
26
enable_dhcp = " true"
26
27
dns_nameservers = " ${ var . dns_nameservers } "
27
28
}
You can’t perform that action at this time.
0 commit comments