vmware-archive / terraforming-gcp

use terraform, deploy yourself a pcf
Apache License 2.0
71 stars 87 forks source link

add reserved range to output #124

Open vchrisb opened 5 years ago

vchrisb commented 5 years ago

the reserved range for the director network configuration is the only missing piece in output for configuring the tile, especially via templating a director.yml. cidrhost is very hand for that.

I can make a PR to add the following to the output:

output "subnet_mgmt_reserved" {
  value     = "${cidrhost(module.infra.ip_cidr_range, 1)}-${cidrhost(module.infra.ip_cidr_range, 9)}"
}

output "subnet_pas_reserved" {
  value     = "${cidrhost(module.pas.pas_subnet_ip_cidr_range, 1)}-${cidrhost(module.pas.pas_subnet_ip_cidr_range, 9)}"
}

output "subnet_pas_svc_reserved" {
  value     = "${cidrhost(module.pas.services_subnet_ip_cidr_range, 1)}-${cidrhost(module.pas.services_subnet_ip_cidr_range, 9)}"
}