Merge "Add --detailed-exitcodes when running puppet via ansible" into stable/pike
[apex-tripleo-heat-templates.git] / network / networks.j2.yaml
1 heat_template_version: pike
2
3 description: Create networks to split out Overcloud traffic
4
5 resources:
6   {%- for network in networks %}
7   {%- set network_name = network.compat_name|default(network.name) %}
8   {{network_name}}Network:
9     type: OS::TripleO::Network::{{network.name}}
10   {%- endfor %}
11
12   NetworkExtraConfig:
13     type: OS::TripleO::Network::ExtraConfig
14
15
16 outputs:
17   net_cidr_map:
18     value:
19       # NOTE(gfidente): we need to replace the null value with a
20       # string to work around https://bugs.launchpad.net/heat/+bug/1700025
21       {%- for network in networks %}
22       {%- set network_name = network.compat_name|default(network.name) %}
23       {{network.name_lower}}:
24         yaql:
25           data: {get_attr: [{{network_name}}Network, subnet_cidr]}
26           expression: str($.data).replace('null', 'disabled')
27       {%- endfor %}