Copy deployments.yaml to top level config-dir

The deployments.yaml tasks file is not specific to roles, it's the same
for all. Moving it to the top level config-dir directory will allow
parallelizing these tasks across all roles instead of doing the roles
one by one.

For the time being, it's also copied to the existing location under the
role specific dir for backwards compatibility so that this patch can
merge without initially breaking tripleo-heat-templates. See the related
tripleo-heat-templates patch:
I83a4deaa68d5788edb5ab13652bb30c762f337d8

Change-Id: I839ca7f95688a992e82c670e190c82659951e34d
(cherry picked from commit fd8c629eac)
This commit is contained in:
James Slagle 2018-06-11 17:52:06 -04:00
parent ff147b237b
commit 574ce9450f
1 changed files with 6 additions and 0 deletions

View File

@ -371,6 +371,12 @@ class Config(object):
pre_deployments=deployments['pre_deployments'],
post_deployments=deployments['post_deployments']))
shutil.copyfile(
os.path.join(templates_path, 'deployments.yaml'),
os.path.join(config_dir, 'deployments.yaml'))
# Also copy deployments.yaml to the role dir for temporary backwards
# compatibility until https://review.openstack.org/574474 merges.
for role_name, role in six.iteritems(role_data):
role_path = os.path.join(tmp_path, role_name)