Merge "Use j2 loops in post.j2.yaml"
This commit is contained in:
commit
80187a2e19
@ -57,72 +57,29 @@ resources:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
# Step through a series of configuration steps
|
# Step through a series of configuration steps
|
||||||
{{role.name}}Deployment_Step1:
|
{% for step in range(1, 6) %}
|
||||||
|
{% for role in roles %}
|
||||||
|
|
||||||
|
{{role.name}}Deployment_Step{{step}}:
|
||||||
type: OS::Heat::StructuredDeploymentGroup
|
type: OS::Heat::StructuredDeploymentGroup
|
||||||
|
{% if step == 1 %}
|
||||||
depends_on: [{{role.name}}PreConfig, {{role.name}}ArtifactsDeploy]
|
depends_on: [{{role.name}}PreConfig, {{role.name}}ArtifactsDeploy]
|
||||||
|
{% else %}
|
||||||
|
depends_on:
|
||||||
|
{% for dep in roles %}
|
||||||
|
- {{dep.name}}Deployment_Step{{step -1}}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
properties:
|
properties:
|
||||||
name: {{role.name}}Deployment_Step1
|
name: {{role.name}}Deployment_Step{{step}}
|
||||||
servers: {get_param: [servers, {{role.name}}]}
|
servers: {get_param: [servers, {{role.name}}]}
|
||||||
config: {get_resource: {{role.name}}Config}
|
config: {get_resource: {{role.name}}Config}
|
||||||
input_values:
|
input_values:
|
||||||
step: 1
|
step: {{step}}
|
||||||
update_identifier: {get_param: DeployIdentifier}
|
update_identifier: {get_param: DeployIdentifier}
|
||||||
|
|
||||||
{{role.name}}Deployment_Step2:
|
|
||||||
type: OS::Heat::StructuredDeploymentGroup
|
|
||||||
depends_on:
|
|
||||||
{% for dep in roles %}
|
|
||||||
- {{dep.name}}Deployment_Step1
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
properties:
|
{% endfor %}
|
||||||
name: {{role.name}}Deployment_Step2
|
|
||||||
servers: {get_param: [servers, {{role.name}}]}
|
|
||||||
config: {get_resource: {{role.name}}Config}
|
|
||||||
input_values:
|
|
||||||
step: 2
|
|
||||||
update_identifier: {get_param: DeployIdentifier}
|
|
||||||
|
|
||||||
{{role.name}}Deployment_Step3:
|
|
||||||
type: OS::Heat::StructuredDeploymentGroup
|
|
||||||
depends_on:
|
|
||||||
{% for dep in roles %}
|
|
||||||
- {{dep.name}}Deployment_Step2
|
|
||||||
{% endfor %}
|
|
||||||
properties:
|
|
||||||
name: {{role.name}}Deployment_Step3
|
|
||||||
servers: {get_param: [servers, {{role.name}}]}
|
|
||||||
config: {get_resource: {{role.name}}Config}
|
|
||||||
input_values:
|
|
||||||
step: 3
|
|
||||||
update_identifier: {get_param: DeployIdentifier}
|
|
||||||
|
|
||||||
{{role.name}}Deployment_Step4:
|
|
||||||
type: OS::Heat::StructuredDeploymentGroup
|
|
||||||
depends_on:
|
|
||||||
{% for dep in roles %}
|
|
||||||
- {{dep.name}}Deployment_Step3
|
|
||||||
{% endfor %}
|
|
||||||
properties:
|
|
||||||
name: {{role.name}}Deployment_Step4
|
|
||||||
servers: {get_param: [servers, {{role.name}}]}
|
|
||||||
config: {get_resource: {{role.name}}Config}
|
|
||||||
input_values:
|
|
||||||
step: 4
|
|
||||||
update_identifier: {get_param: DeployIdentifier}
|
|
||||||
|
|
||||||
{{role.name}}Deployment_Step5:
|
|
||||||
type: OS::Heat::StructuredDeploymentGroup
|
|
||||||
depends_on:
|
|
||||||
{% for dep in roles %}
|
|
||||||
- {{dep.name}}Deployment_Step4
|
|
||||||
{% endfor %}
|
|
||||||
properties:
|
|
||||||
name: {{role.name}}Deployment_Step5
|
|
||||||
servers: {get_param: [servers, {{role.name}}]}
|
|
||||||
config: {get_resource: {{role.name}}Config}
|
|
||||||
input_values:
|
|
||||||
step: 5
|
|
||||||
update_identifier: {get_param: DeployIdentifier}
|
|
||||||
|
|
||||||
{{role.name}}PostConfig:
|
{{role.name}}PostConfig:
|
||||||
type: OS::TripleO::Tasks::{{role.name}}PostConfig
|
type: OS::TripleO::Tasks::{{role.name}}PostConfig
|
||||||
|
Loading…
Reference in New Issue
Block a user