summaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorGiulio Fidente <gfidente@redhat.com>2017-05-24 18:45:59 +0200
committerGiulio Fidente <gfidente@redhat.com>2017-06-26 16:32:02 +0200
commit9c1940e461867f2ce986a81fa313d7995592f0c5 (patch)
tree7c0e47d78aca6b327ab9d53539582023627651de /puppet
parent71f13388161cbab12fe284f7b251ca8d36f7635c (diff)
Provides a list of per-service ctlplane IPs to the workflows env
Adds in the execution environment of the workflow steps a list of per-service network IPs. This can be used by the workflows to execute actions against the nodes hosting a given service. Change-Id: Id7c735d53f04f6ad848b2f9f1adaa3c84ecd2fcd Implements: blueprint tripleo-ceph-ansible
Diffstat (limited to 'puppet')
-rw-r--r--puppet/post.j2.yaml2
-rw-r--r--puppet/puppet-steps.j26
2 files changed, 8 insertions, 0 deletions
diff --git a/puppet/post.j2.yaml b/puppet/post.j2.yaml
index 370ffa8a..67e1ecfd 100644
--- a/puppet/post.j2.yaml
+++ b/puppet/post.j2.yaml
@@ -25,5 +25,7 @@ parameters:
description: >
Setting this to a unique value will re-run any deployment tasks which
perform configuration on a Heat stack-update.
+ ctlplane_service_ips:
+ type: json
{% include 'puppet-steps.j2' %}
diff --git a/puppet/puppet-steps.j2 b/puppet/puppet-steps.j2
index cc681fd3..82c6171e 100644
--- a/puppet/puppet-steps.j2
+++ b/puppet/puppet-steps.j2
@@ -133,8 +133,14 @@ resources:
actions:
CREATE:
workflow: { get_resource: WorkflowTasks_Step{{step}} }
+ params:
+ env:
+ service_ips: { get_param: ctlplane_service_ips }
UPDATE:
workflow: { get_resource: WorkflowTasks_Step{{step}} }
+ params:
+ env:
+ service_ips: { get_param: ctlplane_service_ips }
always_update: true
{% endfor %}
# END service_workflow_tasks handling