- - get_attr: [CephStorageServiceChain, role_data, config_settings]
- - get_attr: [ControllerServiceChain, role_data, global_config_settings]
- - get_attr: [ComputeServiceChain, role_data, global_config_settings]
- - get_attr: [BlockStorageServiceChain, role_data, global_config_settings]
- - get_attr: [ObjectStorageServiceChain, role_data, global_config_settings]
- - get_attr: [CephStorageServiceChain, role_data, global_config_settings]
- ServiceNames: {get_attr: [CephStorageServiceChain, role_data, service_names]}
- MonitoringSubscriptions: {get_attr: [CephStorageServiceChain, role_data, monitoring_subscriptions]}
-
- ControllerIpListMap:
- type: OS::TripleO::Network::Ports::NetIpListMap
- properties:
- ControlPlaneIpList: {get_attr: [Controller, ip_address]}
- ExternalIpList: {get_attr: [Controller, external_ip_address]}
- InternalApiIpList: {get_attr: [Controller, internal_api_ip_address]}
- StorageIpList: {get_attr: [Controller, storage_ip_address]}
- StorageMgmtIpList: {get_attr: [Controller, storage_mgmt_ip_address]}
- TenantIpList: {get_attr: [Controller, tenant_ip_address]}
- ManagementIpList: {get_attr: [Controller, management_ip_address]}
- EnabledServices: {get_attr: [ControllerServiceChain, role_data, service_names]}
- ServiceNetMap: {get_attr: [ServiceNetMap, service_net_map_lower]}
- ServiceHostnameList: {get_attr: [Controller, hostname]}
-
- ComputeIpListMap:
- type: OS::TripleO::Network::Ports::NetIpListMap
- properties:
- ControlPlaneIpList: {get_attr: [Compute, ip_address]}
- ExternalIpList: {get_attr: [Compute, external_ip_address]}
- InternalApiIpList: {get_attr: [Compute, internal_api_ip_address]}
- StorageIpList: {get_attr: [Compute, storage_ip_address]}
- StorageMgmtIpList: {get_attr: [Compute, storage_mgmt_ip_address]}
- TenantIpList: {get_attr: [Compute, tenant_ip_address]}
- ManagementIpList: {get_attr: [Compute, management_ip_address]}
- EnabledServices: {get_attr: [ComputeServiceChain, role_data, service_names]}
- ServiceNetMap: {get_attr: [ServiceNetMap, service_net_map_lower]}
- ServiceHostnameList: {get_attr: [Compute, hostname]}
-
- BlockStorageIpListMap:
- type: OS::TripleO::Network::Ports::NetIpListMap
- properties:
- ControlPlaneIpList: {get_attr: [BlockStorage, ip_address]}
- ExternalIpList: {get_attr: [BlockStorage, external_ip_address]}
- InternalApiIpList: {get_attr: [BlockStorage, internal_api_ip_address]}
- StorageIpList: {get_attr: [BlockStorage, storage_ip_address]}
- StorageMgmtIpList: {get_attr: [BlockStorage, storage_mgmt_ip_address]}
- TenantIpList: {get_attr: [BlockStorage, tenant_ip_address]}
- ManagementIpList: {get_attr: [BlockStorage, management_ip_address]}
- EnabledServices: {get_attr: [BlockStorageServiceChain, role_data, service_names]}
- ServiceNetMap: {get_attr: [ServiceNetMap, service_net_map_lower]}
- ServiceHostnameList: {get_attr: [BlockStorage, hostname]}
-
- ObjectStorageIpListMap:
- type: OS::TripleO::Network::Ports::NetIpListMap
- properties:
- ControlPlaneIpList: {get_attr: [ObjectStorage, ip_address]}
- ExternalIpList: {get_attr: [ObjectStorage, external_ip_address]}
- InternalApiIpList: {get_attr: [ObjectStorage, internal_api_ip_address]}
- StorageIpList: {get_attr: [ObjectStorage, storage_ip_address]}
- StorageMgmtIpList: {get_attr: [ObjectStorage, storage_mgmt_ip_address]}
- TenantIpList: {get_attr: [ObjectStorage, tenant_ip_address]}
- ManagementIpList: {get_attr: [ObjectStorage, management_ip_address]}
- EnabledServices: {get_attr: [ObjectStorageServiceChain, role_data, service_names]}
- ServiceNetMap: {get_attr: [ServiceNetMap, service_net_map_lower]}
- ServiceHostnameList: {get_attr: [ObjectStorage, hostname]}
-
- CephStorageIpListMap:
- type: OS::TripleO::Network::Ports::NetIpListMap
- properties:
- ControlPlaneIpList: {get_attr: [CephStorage, ip_address]}
- ExternalIpList: {get_attr: [CephStorage, external_ip_address]}
- InternalApiIpList: {get_attr: [CephStorage, internal_api_ip_address]}
- StorageIpList: {get_attr: [CephStorage, storage_ip_address]}
- StorageMgmtIpList: {get_attr: [CephStorage, storage_mgmt_ip_address]}
- TenantIpList: {get_attr: [CephStorage, tenant_ip_address]}
- ManagementIpList: {get_attr: [CephStorage, management_ip_address]}
- EnabledServices: {get_attr: [CephStorageServiceChain, role_data, service_names]}
- ServiceNetMap: {get_attr: [ServiceNetMap, service_net_map_lower]}
- ServiceHostnameList: {get_attr: [CephStorage, hostname]}
+ - get_attr: [{{role.name}}ServiceChain, role_data, config_settings]
+ {% for r in roles %}
+ - get_attr: [{{r.name}}ServiceChain, role_data, global_config_settings]
+ {% endfor %}
+ # This next step combines two yaql passes:
+ # - The inner one does a deep merge on the service_config_settings for all roles
+ # - The outer one filters the map based on the services enabled for the role
+ # then merges the result into one map.
+ - yaql:
+ expression: let(root => $) -> $.data.map.items().where($[0] in $root.data.services).select($[1]).reduce($1.mergeWith($2), {})
+ data:
+ map:
+ yaql:
+ expression: $.data.where($ != null).reduce($1.mergeWith($2), {})
+ data:
+ {% for r in roles %}
+ - get_attr: [{{r.name}}ServiceChain, role_data, service_config_settings]
+ {% endfor %}
+ services: {get_attr: [{{role.name}}ServiceChain, role_data, service_names]}
+ ServiceNames: {get_attr: [{{role.name}}ServiceChain, role_data, service_names]}
+ MonitoringSubscriptions: {get_attr: [{{role.name}}ServiceChain, role_data, monitoring_subscriptions]}
+ LoggingSources: {get_attr: [{{role.name}}ServiceChain, role_data, logging_sources]}
+ LoggingGroups: {get_attr: [{{role.name}}ServiceChain, role_data, logging_groups]}
+{% endfor %}