aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorGiulio Fidente <gfidente@redhat.com>2017-07-14 13:38:47 +0200
committerGiulio Fidente <gfidente@redhat.com>2017-07-14 18:41:32 +0200
commit8b81b363fd48b0080b963fd2b1ab6bfe97b0c204 (patch)
treeb673c4ff2c35d216aa78103d8a0a97c6c1f5856a /docker
parentbaf6eee5016fac7004a7b8be6f78d4505f347aeb (diff)
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
Diffstat (limited to 'docker')
-rw-r--r--docker/docker-steps.j28
1 files changed, 8 insertions, 0 deletions
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 %}