Fix for the resource ControllerPostPuppetMaintenanceModeDeployment

Closes-Bug:1686619

Change-Id: I7c32ca39a456de9833d30c31d41fcb727d2b0a34
This commit is contained in:
Carlos Camacho 2017-04-27 11:00:32 +02:00
parent c9d758ce6a
commit 77b4bd53da
4 changed files with 16 additions and 11 deletions

View File

@ -10,7 +10,9 @@ parameters:
resources: resources:
ControllerPostPuppetMaintenanceModeConfig: {%- for role in roles -%}
{% if "controller" in role.tags %}
{{role.name}}PostPuppetMaintenanceModeConfig:
type: OS::Heat::SoftwareConfig type: OS::Heat::SoftwareConfig
properties: properties:
group: script group: script
@ -22,16 +24,19 @@ resources:
pcs property set maintenance-mode=false pcs property set maintenance-mode=false
fi fi
ControllerPostPuppetMaintenanceModeDeployment: {{role.name}}PostPuppetMaintenanceModeDeployment:
type: OS::Heat::SoftwareDeployments type: OS::Heat::SoftwareDeployments
properties: properties:
servers: {get_param: servers} servers: {get_param: [servers, {{role.name}}]}
config: {get_resource: ControllerPostPuppetMaintenanceModeConfig} config: {get_resource: {{role.name}}PostPuppetMaintenanceModeConfig}
input_values: {get_param: input_values} input_values: {get_param: input_values}
ControllerPostPuppetRestart: {{role.name}}PostPuppetRestart:
type: OS::TripleO::Tasks::ControllerPostPuppetRestart type: OS::TripleO::Tasks::{{role.name}}PostPuppetRestart
depends_on: ControllerPostPuppetMaintenanceModeDeployment depends_on: {{role.name}}PostPuppetMaintenanceModeDeployment
properties: properties:
servers: {get_param: servers} servers: {get_param: [servers, {{role.name}}]}
input_values: {get_param: input_values} input_values: {get_param: input_values}
{%- endif -%}
{% endfor %}

View File

@ -51,7 +51,7 @@
- {{dep.name}}Deployment_Step5 - {{dep.name}}Deployment_Step5
{% endfor %} {% endfor %}
properties: properties:
servers: {get_param: [servers, {{role.name}}]} servers: {get_param: servers}
input_values: input_values:
update_identifier: {get_param: DeployIdentifier} update_identifier: {get_param: DeployIdentifier}