Merge "Fix hiera condition in UndercloudCtlplaneNetworkDeployment"

This commit is contained in:
Zuul 2018-11-10 03:46:51 +00:00 committed by Gerrit Code Review
commit 2ffe5d65f9
2 changed files with 6 additions and 2 deletions

View File

@ -260,8 +260,11 @@ def config_neutron_segments_and_subnets(sdk, ctlplane_id):
_ensure_neutron_router(sdk, name, subnet.id)
if _run_command(['hiera', 'neutron_api_enabled'], name='hiera'):
if 'true' not in _run_command(['hiera', 'neutron_api_enabled'],
name='hiera').lower():
print('WARNING: UndercloudCtlplaneNetworkDeployment : The Neutron API '
'is disabled. The ctlplane network cannot be configured.')
else:
sdk = os_client_config.make_sdk(auth_url=AUTH_URL,
project_name='admin',
username='admin',

View File

@ -184,6 +184,7 @@ resources:
UndercloudCtlplaneNetworkDeployment:
type: OS::Heat::SoftwareDeployments
depends_on: UndercloudPostDeployment
properties:
name: UndercloudCtlplaneNetworkDeployment
servers: {get_param: servers}