diff options
author | Tim Rozet <trozet@redhat.com> | 2018-08-13 14:51:09 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2018-08-14 15:38:59 -0400 |
commit | ae5fcc0dd1d19c750cba8d9bf16545f5a7802287 (patch) | |
tree | 8bd9601966ded90b63373ccaa3ac3993d21beffa /apex/deploy.py | |
parent | c5959cc14b95e9d10b78ebf3c8e2525c672fc0c7 (diff) |
Allow common patches file
This patch adds allowing for common patches that should be applied to
every scenario to be included. It by default pulls in a file in the
deploy directory 'common-patches.yaml', but can optionally be
overridden.
This patch also includes a patch upstream to fix OSCLI not working
anymore due to breakage with the Cinder version in the overcloudrc.
Change-Id: I97b9efb937deff07e085b9ef75b9799fb65bfc57
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'apex/deploy.py')
-rw-r--r-- | apex/deploy.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apex/deploy.py b/apex/deploy.py index ca4101b4..8065d5ca 100644 --- a/apex/deploy.py +++ b/apex/deploy.py @@ -34,6 +34,7 @@ from apex.common import utils from apex.common import constants from apex.common import parsers from apex.common.exceptions import ApexDeployException +from apex.deployment.tripleo import ApexDeployment from apex.network import jumphost from apex.network import network_data from apex.undercloud import undercloud as uc_lib @@ -188,6 +189,11 @@ def create_deploy_parser(): default=False, help='Ignore fetching latest upstream and ' 'use what is in cache') + deploy_parser.add_argument('-p', '--patches', + default='/etc/opnfv-apex/common-patches.yaml', + dest='patches_file', + help='File to include for common patches ' + 'which apply to all deployment scenarios') return deploy_parser @@ -308,6 +314,8 @@ def main(): deploy_quickstart(args, deploy_settings_file, network_settings_file, args.inventory_file) else: + deployment = ApexDeployment(deploy_settings, args.patches_file, + args.deploy_settings_file) # TODO (trozet): add logic back from: # Iedb75994d35b5dc1dd5d5ce1a57277c8f3729dfd (FDIO DVR) ansible_args = { @@ -373,7 +381,7 @@ def main(): uc_builder.add_upstream_packages(uc_image) # add patches from upstream to undercloud and overcloud logging.info('Adding patches to undercloud') - patches = deploy_settings['global_params']['patches'] + patches = deployment.determine_patches() c_builder.add_upstream_patches(patches['undercloud'], uc_image, APEX_TEMP_DIR, branch) |