aboutsummaryrefslogtreecommitdiffstats
path: root/puppet
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 /puppet
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 'puppet')
-rw-r--r--puppet/puppet-steps.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/puppet-steps.j2 b/puppet/puppet-steps.j2
index 82c6171e..55aa6856 100644
--- a/puppet/puppet-steps.j2
+++ b/puppet/puppet-steps.j2
@@ -136,11 +136,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
{% endfor %}
# END service_workflow_tasks handling