Browse Source

Merge "Use environment files when building image params"

changes/38/789638/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
67a565917c
1 changed files with 11 additions and 10 deletions
  1. +11
    -10
      tripleoclient/v1/overcloud_deploy.py

+ 11
- 10
tripleoclient/v1/overcloud_deploy.py View File

@ -253,9 +253,20 @@ class DeployOvercloud(command.Command):
created_env_files = []
created_env_files.append(
os.path.join(new_tht_root, constants.DEFAULT_RESOURCE_REGISTRY))
if parsed_args.environment_directories:
created_env_files.extend(utils.load_environment_directories(
parsed_args.environment_directories))
if parsed_args.deployed_server:
created_env_files.append(
os.path.join(
new_tht_root,
constants.DEPLOYED_SERVER_ENVIRONMENT))
if parsed_args.environment_files:
created_env_files.extend(parsed_args.environment_files)
created_env_files.extend(
self._provision_baremetal(parsed_args, new_tht_root))
@ -269,7 +280,6 @@ class DeployOvercloud(command.Command):
image_params = kolla_builder.container_images_prepare_multi(
env, roles.get_roles_data(parsed_args.roles_file,
new_tht_root), dry_run=True)
parameters = {}
if image_params:
default_image_params.update(image_params)
@ -295,15 +305,6 @@ class DeployOvercloud(command.Command):
parameters, new_tht_root, parsed_args.stack)
created_env_files.extend(param_env)
if parsed_args.deployed_server:
created_env_files.append(
os.path.join(
new_tht_root,
constants.DEPLOYED_SERVER_ENVIRONMENT))
if parsed_args.environment_files:
created_env_files.extend(parsed_args.environment_files)
deployment_options = {}
if parsed_args.deployment_python_interpreter:
deployment_options['ansible_python_interpreter'] = \


Loading…
Cancel
Save