aboutsummaryrefslogtreecommitdiffstats
path: root/puppet
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-02-17 01:21:21 +0000
committerGerrit Code Review <review@openstack.org>2017-02-17 01:21:21 +0000
commit0951a579fee76f2380628d9da417223673c1cf25 (patch)
tree5370637e9bd8ac96e9e65a7a5a0f83261512eec1 /puppet
parent71bac87cffcfc69f8b99babca39e34a9dc6e4588 (diff)
parentb323f8a16035549d84cdec4718380bde3d23d6c3 (diff)
Merge "Automatically backup and restore Swift rings from the undercloud"
Diffstat (limited to 'puppet')
-rw-r--r--puppet/puppet-steps.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/puppet/puppet-steps.j2 b/puppet/puppet-steps.j2
index c3b54ccd..4eca2333 100644
--- a/puppet/puppet-steps.j2
+++ b/puppet/puppet-steps.j2
@@ -32,6 +32,13 @@
update_identifier: {get_param: DeployIdentifier}
{% endif %}
+ {% if role.name in ['Controller', 'ObjectStorage'] %}
+ {{role.name}}SwiftRingDeploy:
+ type: OS::TripleO::Tasks::SwiftRingDeploy
+ properties:
+ servers: {get_param: [servers, {{role.name}}]}
+ {% endif %}
+
# Step through a series of configuration steps
{% for step in range(1, 6) %}
{{role.name}}Deployment_Step{{step}}:
@@ -85,4 +92,15 @@
input_values:
update_identifier: {get_param: DeployIdentifier}
{% endif %}
+
+ {% if role.name in ['Controller', 'ObjectStorage'] %}
+ {{role.name}}SwiftRingUpdate:
+ type: OS::TripleO::Tasks::SwiftRingUpdate
+ depends_on:
+ {% for dep in roles %}
+ - {{dep.name}}Deployment_Step5
+ {% endfor %}
+ properties:
+ servers: {get_param: [servers, {{role.name}}]}
+ {% endif %}
{% endfor %}