Merge "Enable Distributed Cloud configuration"
This commit is contained in:
@@ -175,16 +175,8 @@ class openstack::keystone::api
|
||||
# the subcloud region.
|
||||
if ($::platform::params::distributed_cloud_role == 'subcloud' and
|
||||
$::platform::params::region_2_name != 'RegionOne') {
|
||||
Keystone_endpoint["${platform::params::region_2_name}/keystone::identity"] -> Keystone_endpoint['RegionOne/keystone::identity']
|
||||
keystone_endpoint { 'RegionOne/keystone::identity':
|
||||
ensure => 'absent',
|
||||
name => 'keystone',
|
||||
type => 'identity',
|
||||
region => 'RegionOne',
|
||||
public_url => 'http://127.0.0.1:5000/v3',
|
||||
admin_url => 'http://127.0.0.1:5000/v3',
|
||||
internal_url => 'http://127.0.0.1:5000/v3'
|
||||
}
|
||||
Keystone_endpoint<||> -> Class['::platform::client']
|
||||
# TODO: use exec openstack endpoint delete commands to clean up the bootstrap endpoints
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ keystone-<%=@reference_region %>-filter.conf \
|
||||
--os-username <%=@os_username %> \
|
||||
--os-password $PASSWORD \
|
||||
--os-region-name <%=@identity_region %> \
|
||||
--os-keystone-region-name <%=@keystone_region %> \
|
||||
--os-auth-url <%=@auth_url %> \
|
||||
--os-identity-api-version <%=@api_version %> \
|
||||
--os-project-name <%=@os_project_name %> | awk '/id\ \ / { print $4 }' )
|
||||
@@ -13,7 +12,6 @@ openstack endpoint group add project $ENDPOINTGROUP_ID services \
|
||||
--os-username <%=@os_username %> \
|
||||
--os-password $PASSWORD \
|
||||
--os-region-name <%=@identity_region %> \
|
||||
--os-keystone-region-name <%=@keystone_region %> \
|
||||
--os-auth-url <%=@auth_url %> \
|
||||
--os-identity-api-version <%=@api_version %> \
|
||||
--os-project-name <%=@os_project_name %>
|
||||
|
||||
@@ -5,7 +5,6 @@ keystone-<%=@system_controller_region %>-filter.conf \
|
||||
--os-username <%=@os_username %> \
|
||||
--os-password $PASSWORD \
|
||||
--os-region-name <%=@identity_region %> \
|
||||
--os-keystone-region-name <%=@keystone_region %> \
|
||||
--os-auth-url <%=@auth_url %> \
|
||||
--os-identity-api-version <%=@api_version %> \
|
||||
--os-project-name <%=@os_project_name %> | awk '/id\ \ / { print $4 }' )
|
||||
@@ -13,7 +12,6 @@ openstack endpoint group add project $ENDPOINTGROUP_ID services \
|
||||
--os-username <%=@os_username %> \
|
||||
--os-password $PASSWORD \
|
||||
--os-region-name <%=@identity_region %> \
|
||||
--os-keystone-region-name <%=@keystone_region %> \
|
||||
--os-auth-url <%=@auth_url %> \
|
||||
--os-identity-api-version <%=@api_version %> \
|
||||
--os-project-name <%=@os_project_name %>
|
||||
|
||||
@@ -433,6 +433,7 @@ class platform::kubernetes::firewall
|
||||
|
||||
$system_mode = $::platform::params::system_mode
|
||||
$oam_float_ip = $::platform::network::oam::params::controller_address
|
||||
$oam_interface = $::platform::network::oam::params::interface_name
|
||||
$mgmt_subnet = $::platform::network::mgmt::params::subnet_network
|
||||
$mgmt_prefixlen = $::platform::network::mgmt::params::subnet_prefixlen
|
||||
|
||||
@@ -448,7 +449,8 @@ class platform::kubernetes::firewall
|
||||
dport => $dports,
|
||||
destination => $d_mgmt_subnet,
|
||||
source => $s_mgmt_subnet,
|
||||
tosource => $oam_float_ip
|
||||
tosource => $oam_float_ip,
|
||||
outiface => $oam_interface,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1129,18 +1129,6 @@ class platform::sm
|
||||
-> exec { 'Provision DCOrch-Sysinv-Api-Proxy in SM (service dcorch-sysinv-api-proxy)':
|
||||
command => 'sm-provision service dcorch-sysinv-api-proxy',
|
||||
}
|
||||
-> exec { 'Provision DCOrch-Nova-Api-Proxy (service-group-member dcorch-nova-api-proxy)':
|
||||
command => 'sm-provision service-group-member distributed-cloud-services dcorch-nova-api-proxy',
|
||||
}
|
||||
-> exec { 'Provision DCOrch-Nova-Api-Proxy in SM (service dcorch-nova-api-proxy)':
|
||||
command => 'sm-provision service dcorch-nova-api-proxy',
|
||||
}
|
||||
-> exec { 'Provision DCOrch-Neutron-Api-Proxy (service-group-member dcorch-neutron-api-proxy)':
|
||||
command => 'sm-provision service-group-member distributed-cloud-services dcorch-neutron-api-proxy',
|
||||
}
|
||||
-> exec { 'Provision DCOrch-Neutron-Api-Proxy in SM (service dcorch-neutron-api-proxy)':
|
||||
command => 'sm-provision service dcorch-neutron-api-proxy',
|
||||
}
|
||||
-> exec { 'Provision DCOrch-Patch-Api-Proxy (service-group-member dcorch-patch-api-proxy)':
|
||||
command => 'sm-provision service-group-member distributed-cloud-services dcorch-patch-api-proxy',
|
||||
}
|
||||
@@ -1165,25 +1153,9 @@ class platform::sm
|
||||
-> exec { 'Configure OpenStack - DCOrch-sysinv-api-proxy':
|
||||
command => "sm-configure service_instance dcorch-sysinv-api-proxy dcorch-sysinv-api-proxy \"\"",
|
||||
}
|
||||
-> exec { 'Configure OpenStack - DCOrch-nova-api-proxy':
|
||||
command => "sm-configure service_instance dcorch-nova-api-proxy dcorch-nova-api-proxy \"\"",
|
||||
}
|
||||
-> exec { 'Configure OpenStack - DCOrch-neutron-api-proxy':
|
||||
command => "sm-configure service_instance dcorch-neutron-api-proxy dcorch-neutron-api-proxy \"\"",
|
||||
}
|
||||
-> exec { 'Configure OpenStack - DCOrch-patch-api-proxy':
|
||||
command => "sm-configure service_instance dcorch-patch-api-proxy dcorch-patch-api-proxy \"\"",
|
||||
}
|
||||
|
||||
exec { 'Provision DCOrch-Cinder-Api-Proxy (service-group-member dcorch-cinder-api-proxy)':
|
||||
command => 'sm-provision service-group-member distributed-cloud-services dcorch-cinder-api-proxy',
|
||||
}
|
||||
-> exec { 'Provision DCOrch-Cinder-Api-Proxy in SM (service dcorch-cinder-api-proxy)':
|
||||
command => 'sm-provision service dcorch-cinder-api-proxy',
|
||||
}
|
||||
-> exec { 'Configure OpenStack - DCOrch-cinder-api-proxy':
|
||||
command => "sm-configure service_instance dcorch-cinder-api-proxy dcorch-cinder-api-proxy \"\"",
|
||||
}
|
||||
}
|
||||
|
||||
# lint:endignore:140chars
|
||||
|
||||
@@ -13,7 +13,6 @@ export OS_USER_DOMAIN_NAME=<%= @admin_user_domain %>
|
||||
export OS_PROJECT_DOMAIN_NAME=<%= @admin_project_domain %>
|
||||
export OS_IDENTITY_API_VERSION=<%= @identity_api_version %>
|
||||
export OS_REGION_NAME=<%= @identity_region %>
|
||||
export OS_KEYSTONE_REGION_NAME=<%= @keystone_identity_region %>
|
||||
export OS_INTERFACE=internal
|
||||
|
||||
if [ ! -z "${OS_PASSWORD}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user