Merge "Fix hiera condition in UndercloudCtlplaneNetworkDeployment"
This commit is contained in:
commit
2ffe5d65f9
@ -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',
|
||||
|
@ -184,6 +184,7 @@ resources:
|
||||
|
||||
UndercloudCtlplaneNetworkDeployment:
|
||||
type: OS::Heat::SoftwareDeployments
|
||||
depends_on: UndercloudPostDeployment
|
||||
properties:
|
||||
name: UndercloudCtlplaneNetworkDeployment
|
||||
servers: {get_param: servers}
|
||||
|
Loading…
Reference in New Issue
Block a user