From 8b81b363fd48b0080b963fd2b1ab6bfe97b0c204 Mon Sep 17 00:00:00 2001 From: Giulio Fidente Date: Fri, 14 Jul 2017 13:38:47 +0200 Subject: Add role_merged_configs into workflow executions environmentxi Merges per-role config settings into merged_config_settings which is wired into the workflow executions environment. Useful to consume role config settings from within a workflow. Change-Id: Id37de5864138edd5476c097a8a1f0763faeaf768 --- docker/docker-steps.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docker') diff --git a/docker/docker-steps.j2 b/docker/docker-steps.j2 index 73a3cb78..ab75b7eb 100644 --- a/docker/docker-steps.j2 +++ b/docker/docker-steps.j2 @@ -129,11 +129,19 @@ resources: params: env: service_ips: { get_param: ctlplane_service_ips } + role_merged_configs: + {% for r in roles %} + {{r.name}}: {get_param: [role_data, {{r.name}}, merged_config_settings]} + {% endfor %} UPDATE: workflow: { get_resource: WorkflowTasks_Step{{step}} } params: env: service_ips: { get_param: ctlplane_service_ips } + role_merged_configs: + {% for r in roles %} + {{r.name}}: {get_param: [role_data, {{r.name}}, merged_config_settings]} + {% endfor %} always_update: true # END service_workflow_tasks handling {% endfor %} -- cgit 1.2.3-korg