|
|
|
@ -102,11 +102,11 @@ resources:
|
|
|
|
|
value:
|
|
|
|
|
yaql:
|
|
|
|
|
expression:
|
|
|
|
|
# select 'docker_config_scripts' only from services that have it
|
|
|
|
|
coalesce($.data.service_names, []).zip(coalesce($.data.docker_config_scripts, [])).where($[1] != null).select($[1]).reduce($1.mergeWith($2), {})
|
|
|
|
|
# select 'container_config_scripts' only from services that have it
|
|
|
|
|
coalesce($.data.service_names, []).zip(coalesce($.data.container_config_scripts, [])).where($[1] != null).select($[1]).reduce($1.mergeWith($2), {})
|
|
|
|
|
data:
|
|
|
|
|
service_names: {get_attr: [ServiceChain, role_data, service_names]}
|
|
|
|
|
docker_config_scripts: {get_attr: [ServiceChain, role_data, docker_config_scripts]}
|
|
|
|
|
container_config_scripts: {get_attr: [ServiceChain, role_data, container_config_scripts]}
|
|
|
|
|
|
|
|
|
|
MonitoringSubscriptionsConfig:
|
|
|
|
|
type: OS::Heat::Value
|
|
|
|
@ -368,7 +368,7 @@ outputs:
|
|
|
|
|
puppet_config: {get_attr: [PuppetConfig, value]}
|
|
|
|
|
kolla_config: {get_attr: [KollaConfig, value]}
|
|
|
|
|
docker_config: {get_attr: [DockerConfig, value]}
|
|
|
|
|
docker_config_scripts: {get_attr: [DockerConfigScripts, value]}
|
|
|
|
|
container_config_scripts: {get_attr: [DockerConfigScripts, value]}
|
|
|
|
|
container_puppet_tasks:
|
|
|
|
|
map_merge:
|
|
|
|
|
- {get_attr: [ContainerPuppetTasks, value]}
|
|
|
|
|