aboutsummaryrefslogtreecommitdiffstats
path: root/common/deploy-steps.j2
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-08-13 06:51:35 +0000
committerGerrit Code Review <review@openstack.org>2017-08-13 06:51:35 +0000
commit057b6e3aebfa54a4468a23d8e78c0217281bfd25 (patch)
treeff0a193c8d2666e8c452498d7e8ff9549f0beb64 /common/deploy-steps.j2
parentbe8f4afdafe2e968e9b3e7f627b6b31d1f0560fa (diff)
parent46279be9cb77ec9cf6e53e77c239a51efda06d80 (diff)
Merge "Add RoleConfig output"
Diffstat (limited to 'common/deploy-steps.j2')
-rw-r--r--common/deploy-steps.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/common/deploy-steps.j2 b/common/deploy-steps.j2
index bd8d9bc0..9cf4ead0 100644
--- a/common/deploy-steps.j2
+++ b/common/deploy-steps.j2
@@ -302,3 +302,21 @@ resources:
{% endfor %}
+
+outputs:
+ RoleConfig:
+ description: Mapping of config data for all roles
+ value:
+ deploy_steps_tasks: {get_file: deploy-steps-tasks.yaml}
+ deploy_steps_playbook: |
+ - hosts: overcloud
+ tasks:
+{%- for role in roles %}
+ - include: {{role.name}}/host_prep_tasks.yaml
+ when: role_name == '{{role.name}}'
+{%- endfor %}
+ - include: deploy_steps_tasks.yaml
+ with_sequence: count={{deploy_steps_max-1}}
+ loop_control:
+ loop_var: step
+