aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorCarlos Camacho <ccamacho@redhat.com>2017-06-08 23:18:44 +0200
committerCarlos Camacho <ccamacho@redhat.com>2017-06-13 11:09:19 +0200
commit628d7a7901bae6e1549d16e9203392da4fb117b2 (patch)
treed3b74c9ae2b304d4a651ffcb50da308f7843c764 /docker
parentc9afae93f2abc1a8622737c5a4c878b0ca3faad4 (diff)
Moving *postconfig where it was *postpuppet
We need to ensure that the pacemaker cluster restarts in the end of the deployment. Due to the resources renaming we added the postconfig resource not in the end of the deployment as it was *postpuppet. Closes-bug: 1695904 Change-Id: Ic6978fcff591635223b354831cd6cbe0802316cf
Diffstat (limited to 'docker')
-rw-r--r--docker/post.j2.yaml26
1 files changed, 15 insertions, 11 deletions
diff --git a/docker/post.j2.yaml b/docker/post.j2.yaml
index dfa8ac2e..1aa9e18e 100644
--- a/docker/post.j2.yaml
+++ b/docker/post.j2.yaml
@@ -122,27 +122,31 @@ resources:
step: 5
update_identifier: {get_param: DeployIdentifier}
- {{role.name}}PostConfig:
- type: OS::TripleO::Tasks::{{role.name}}PostConfig
+ # Note, this should be the last step to execute configuration changes.
+ # Ensure that all {{role.name}}ExtraConfigPost steps are executed
+ # after all the previous deployment steps.
+ {{role.name}}ExtraConfigPost:
depends_on:
{% for dep in roles %}
- {{dep.name}}Deployment_Step5
{% endfor %}
+ type: OS::TripleO::NodeExtraConfigPost
properties:
- servers: {get_param: servers}
- input_values:
- update_identifier: {get_param: DeployIdentifier}
+ servers: {get_param: [servers, {{role.name}}]}
- # Note, this should come last, so use depends_on to ensure
- # this is created after any other resources.
- {{role.name}}ExtraConfigPost:
+ # The {{role.name}}PostConfig steps are in charge of
+ # quiescing all services, i.e. in the Controller case,
+ # we should run a full service reload.
+ {{role.name}}PostConfig:
+ type: OS::TripleO::Tasks::{{role.name}}PostConfig
depends_on:
{% for dep in roles %}
- - {{dep.name}}PostConfig
+ - {{dep.name}}ExtraConfigPost
{% endfor %}
- type: OS::TripleO::NodeExtraConfigPost
properties:
- servers: {get_param: [servers, {{role.name}}]}
+ servers: {get_param: servers}
+ input_values:
+ update_identifier: {get_param: DeployIdentifier}
{% if role.name.lower() == 'compute' %}
CopyEtcConfig: