Browse Source

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)
tags/8.7.1
James Slagle 1 year ago
parent
commit
574ce9450f
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      tripleo_common/utils/config.py

+ 6
- 0
tripleo_common/utils/config.py View File

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

Loading…
Cancel
Save