Merge "gnocchi statsd should be able to send data to port 8125"
[apex-tripleo-heat-templates.git] / network / service_net_map.j2.yaml
1 heat_template_version: 2016-10-14
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       BarbicanApiNetwork: internal_api
29       GnocchiApiNetwork: internal_api
30       MongodbNetwork: internal_api
31       CinderApiNetwork: internal_api
32       CinderIscsiNetwork: storage
33       GlanceApiNetwork: storage
34       GlanceRegistryNetwork: internal_api
35       IronicApiNetwork: ctlplane
36       IronicNetwork: ctlplane
37       KeystoneAdminApiNetwork: ctlplane # allows undercloud to config endpoints
38       KeystonePublicApiNetwork: internal_api
39       ManilaApiNetwork: internal_api
40       NeutronApiNetwork: internal_api
41       HeatApiNetwork: internal_api
42       HeatApiCfnNetwork: internal_api
43       HeatApiCloudwatchNetwork: internal_api
44       NovaApiNetwork: internal_api
45       NovaMetadataNetwork: internal_api
46       NovaVncProxyNetwork: internal_api
47       SwiftStorageNetwork: storage_mgmt
48       SwiftProxyNetwork: storage
49       SaharaApiNetwork: internal_api
50       HorizonNetwork: internal_api
51       MemcachedNetwork: internal_api
52       RabbitmqNetwork: internal_api
53       RedisNetwork: internal_api
54       MysqlNetwork: internal_api
55       CephClusterNetwork: storage_mgmt
56       CephMonNetwork: storage
57       CephRgwNetwork: storage
58       PublicNetwork: external
59       OpendaylightApiNetwork: internal_api
60       MistralApiNetwork: internal_api
61       # We special-case the default ResolveNetwork for the CephStorage role
62       # for backwards compatibility, all other roles default to internal_api
63       CephStorageHostnameResolveNetwork: storage
64 {% for role in roles if role.name != 'CephStorage' %}
65       {{role.name}}HostnameResolveNetwork: internal_api
66 {% endfor %}
67     description: Mapping of service_name -> network name. Typically set
68                  via parameter_defaults in the resource registry.
69     type: json
70
71   # We define mappings to work around names that break when doing the
72   # CamelCase to snake_case conversion to align with service_names
73   ServiceNetMapDeprecatedMapping:
74     default:
75       MongoDbNetwork: MongodbNetwork
76       RabbitMqNetwork: RabbitmqNetwork
77       CephPublicNetwork: CephMonNetwork
78       SwiftMgmtNetwork: SwiftStorageNetwork
79     description: Mapping older deprecated service names, intended for
80                  internal use only, this will be removed in future.
81     type: json
82
83 parameter_groups:
84 - label: deprecated
85   description: Do not use deprecated params, they will be removed.
86   parameters:
87   - ServiceNetMapDeprecatedMapping
88
89 outputs:
90   service_net_map:
91     value:
92       map_merge:
93         - {get_param: ServiceNetMapDefaults}
94         - map_replace:
95            - {get_param: ServiceNetMap}
96            - keys: {get_param: ServiceNetMapDeprecatedMapping}
97
98   service_net_map_lower:
99     value:
100       # This does a conversion from CamelCase to snake_case,
101       # e.g HeatApiNetwork becomes heat_api_network so it
102       # matches the service names.
103       yaql:
104         expression: dict($.data.map.items().select([ regex(`([a-z0-9])([A-Z])`).replace($[0], '\\1_\\2').toLower(), $[1]]))
105         data:
106           map:
107             map_merge:
108               - {get_param: ServiceNetMapDefaults}
109               - map_replace:
110                  - {get_param: ServiceNetMap}
111                  - keys: {get_param: ServiceNetMapDeprecatedMapping}