In order to simplify the generation of infrastructure_subnets, pas_subnets, and services_subnets calculating and outputing the reserved ip ranges based upon the cidrs already configured will simplify the automation process that consumes the outputs.tf.
For instance when leveraging ytt for the generation of a director_config.yml used by pcf-automation the following could be used:
ytt and templating technologies like it typically do not yet have facilities to generate ips based upon CIDR ranges. By leveraging terraform which has a native ability to do it simplifies down stream consumers.
In order to simplify the generation of
infrastructure_subnets
,pas_subnets
, andservices_subnets
calculating and outputing the reserved ip ranges based upon the cidrs already configured will simplify the automation process that consumes the outputs.tf.For instance when leveraging ytt for the generation of a director_config.yml used by pcf-automation the following could be used:
ytt and templating technologies like it typically do not yet have facilities to generate ips based upon CIDR ranges. By leveraging terraform which has a native ability to do it simplifies down stream consumers.