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
This commit is contained in:
parent
9b39f6caab
commit
fd8c629eac
|
@ -366,6 +366,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(config_dir, role_name)
|
||||
|
||||
|
|
Loading…
Reference in New Issue