From 0a44085af6ba31e81f8eac25a13b375a245b03da Mon Sep 17 00:00:00 2001 From: Steven Hardy Date: Wed, 19 Jul 2017 20:36:11 +0100 Subject: Move docker_puppet_tasks calculation into services.yaml This makes the RolesData output more accurate, and we can rework things so docker-puppet only gets run when there is a non-empty file calculated (e.g there are tasks to run). Change-Id: I8cdab3c857977c80fe2e359ab9e05740a838d66b --- common/services.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/services.yaml') diff --git a/common/services.yaml b/common/services.yaml index ab4ac361..350026cc 100644 --- a/common/services.yaml +++ b/common/services.yaml @@ -223,10 +223,10 @@ resources: DockerPuppetTasks: type: OS::Heat::Value properties: - type: comma_delimited_list + type: json value: yaql: - expression: coalesce($.data, []).where($ != null).select($.get('docker_puppet_tasks')).where($ != null).distinct() + expression: dict(coalesce($.data, []).where($ != null).select($.get('docker_puppet_tasks')).where($ != null).selectMany($.items()).groupBy($[0], $[1])) data: {get_attr: [ServiceChain, role_data]} HostPrepTasks: -- cgit 1.2.3-korg