Add deployed server bootstrap to noop-ctlplane
[apex-tripleo-heat-templates.git] / network / service_net_map.j2.yaml
1 heat_template_version: ocata
2
3 description: >
4   Mapping of service_name_network -> network name
5
6 parameters:
7   ServiceNetMap:
8     description: Mapping of service_name -> network name. Typically set
9                  via parameter_defaults in the resource registry.  This
10                  mapping overrides those in ServiceNetMapDefaults.
11                  Note that the key in this map must match the service_name
12                  in the service template, e.g if the service_name is heat_api
13                  the key must be either heat_api_network, or optionally
14                  HeatApiNetwork (which will be internally converted to
15                  transform captalization to underscores).
16     default: {}
17     type: json
18
19   # Note that the key in this map must match the service_name
20   # see the description above about conversion from CamelCase to
21   # snake_case - the names must still match when converted
22   ServiceNetMapDefaults:
23     default:
24       ApacheNetwork: internal_api
25       NeutronTenantNetwork: tenant
26       CeilometerApiNetwork: internal_api
27       AodhApiNetwork: internal_api
28       PankoApiNetwork: internal_api
29       BarbicanApiNetwork: internal_api
30       GnocchiApiNetwork: internal_api
31       MongodbNetwork: internal_api
32       CinderApiNetwork: internal_api
33       CinderIscsiNetwork: storage
34       GlanceApiNetwork: storage
35       GlanceRegistryNetwork: internal_api
36       IronicApiNetwork: ctlplane
37       IronicNetwork: ctlplane
38       KeystoneAdminApiNetwork: ctlplane # allows undercloud to config endpoints
39       KeystonePublicApiNetwork: internal_api
40       ManilaApiNetwork: internal_api
41       NeutronApiNetwork: internal_api
42       HeatApiNetwork: internal_api
43       HeatApiCfnNetwork: internal_api
44       HeatApiCloudwatchNetwork: internal_api
45       NovaApiNetwork: internal_api
46       NovaMetadataNetwork: internal_api
47       NovaVncProxyNetwork: internal_api
48       SwiftStorageNetwork: storage_mgmt
49       SwiftProxyNetwork: storage
50       SaharaApiNetwork: internal_api
51       HorizonNetwork: internal_api
52       MemcachedNetwork: internal_api
53       RabbitmqNetwork: internal_api
54       RedisNetwork: internal_api
55       MysqlNetwork: internal_api
56       CephClusterNetwork: storage_mgmt
57       CephMonNetwork: storage
58       CephRgwNetwork: storage
59       PublicNetwork: external
60       OpendaylightApiNetwork: internal_api
61       OvnDbsNetwork: internal_api
62       MistralApiNetwork: internal_api
63       ZaqarApiNetwork: internal_api
64       # We special-case the default ResolveNetwork for the CephStorage role
65       # for backwards compatibility, all other roles default to internal_api
66       CephStorageHostnameResolveNetwork: storage
67 {% for role in roles if role.name != 'CephStorage' %}
68       {{role.name}}HostnameResolveNetwork: internal_api
69 {% endfor %}
70     description: Mapping of service_name -> network name. Typically set
71                  via parameter_defaults in the resource registry.
72     type: json
73
74   # We define mappings to work around names that break when doing the
75   # CamelCase to snake_case conversion to align with service_names
76   ServiceNetMapDeprecatedMapping:
77     default:
78       MongoDbNetwork: MongodbNetwork
79       RabbitMqNetwork: RabbitmqNetwork
80       CephPublicNetwork: CephMonNetwork
81       SwiftMgmtNetwork: SwiftStorageNetwork
82     description: Mapping older deprecated service names, intended for
83                  internal use only, this will be removed in future.
84     type: json
85
86 parameter_groups:
87 - label: deprecated
88   description: Do not use deprecated params, they will be removed.
89   parameters:
90   - ServiceNetMapDeprecatedMapping
91
92 outputs:
93   service_net_map:
94     value:
95       map_merge:
96         - {get_param: ServiceNetMapDefaults}
97         - map_replace:
98            - {get_param: ServiceNetMap}
99            - keys: {get_param: ServiceNetMapDeprecatedMapping}
100
101   service_net_map_lower:
102     value:
103       # This does a conversion from CamelCase to snake_case,
104       # e.g HeatApiNetwork becomes heat_api_network so it
105       # matches the service names.
106       yaql:
107         expression: dict($.data.map.items().select([ regex(`([a-z0-9])([A-Z])`).replace($[0], '\\1_\\2').toLower(), $[1]]))
108         data:
109           map:
110             map_merge:
111               - {get_param: ServiceNetMapDefaults}
112               - map_replace:
113                  - {get_param: ServiceNetMap}
114                  - keys: {get_param: ServiceNetMapDeprecatedMapping}