1 heat_template_version: ocata
2 description: 'Generates the relevant service principals for a server'
7 description: the list containing the 'role_data' output for the ServiceChain
9 # Coming from parameter_defaults
11 default: overcloud.localdomain
12 description: The DNS name of this cloud. E.g. ci-overcloud.tripleo.org
15 default: overcloud.internalapi.localdomain
17 The DNS name of this cloud's internal API endpoint. E.g.
18 'ci-overcloud.internalapi.tripleo.org'.
21 default: overcloud.storage.localdomain
23 The DNS name of this cloud's storage endpoint. E.g.
24 'ci-overcloud.storage.tripleo.org'.
26 CloudNameStorageManagement:
27 default: overcloud.storagemgmt.localdomain
29 The DNS name of this cloud's storage management endpoint. E.g.
30 'ci-overcloud.storagemgmt.tripleo.org'.
33 default: overcloud.ctlplane.localdomain
35 The DNS name of this cloud's storage management endpoint. E.g.
36 'ci-overcloud.management.tripleo.org'.
41 IncomingMetadataSettings:
46 # Filter null values and values that contain don't contain
47 # 'metadata_settings', get the values from that key and get the
49 expression: list($.data.where($ != null).where($.containsKey('metadata_settings')).metadata_settings.flatten().distinct())
50 data: {get_param: RoleData}
52 # Generates entries for nova metadata with the following format:
53 # 'managed_service_<id>' : <service>/<fqdn>
54 # Depending on the requested network
60 expression: let(fqdns => $.data.fqdns) -> dict($.data.metadata.where($ != null and $.type = 'vip').select([concat('managed_service_', $.service, $.network), concat($.service, '/', $fqdns.get($.network))]))
62 metadata: {get_attr: [IncomingMetadataSettings, value]}
64 external: {get_param: CloudName}
65 internal_api: {get_param: CloudNameInternal}
66 storage: {get_param: CloudNameStorage}
67 storage_mgmt: {get_param: CloudNameStorageManagement}
68 ctlplane: {get_param: CloudNameCtlplane}
75 expression: dict($.data.where($ != null and $.type = 'node').select([$.service, $.network.replace('_', '')]).groupBy($[0], $[1]))
76 data: {get_attr: [IncomingMetadataSettings, value]}
80 description: actual metadata entries that will be passed to the server.
83 - {get_attr: [IndividualServices, value]}
84 - compact_services: {get_attr: [CompactServices, value]}