Update the default username for Placement API access
During Xena cycle we added a warning message[1] to inform this change. This change actually replaces the user. [1] c7759349c33336d8080b5ca61beca982c3b93b63 Change-Id: I6973ed3564fcda0ddcb308382d7c42d25cb44a65
This commit is contained in:
parent
e7d5127531
commit
2993196301
@ -42,7 +42,7 @@
|
|||||||
#
|
#
|
||||||
# [*username*]
|
# [*username*]
|
||||||
# (optional) Username when talking to placement.
|
# (optional) Username when talking to placement.
|
||||||
# Defaults to 'nova'
|
# Defaults to 'placement'
|
||||||
#
|
#
|
||||||
# [*auth_url*]
|
# [*auth_url*]
|
||||||
# (optional) Keystone auth URL.
|
# (optional) Keystone auth URL.
|
||||||
@ -67,7 +67,7 @@ class neutron::server::placement (
|
|||||||
$project_name = 'services',
|
$project_name = 'services',
|
||||||
$system_scope = $::os_service_default,
|
$system_scope = $::os_service_default,
|
||||||
$user_domain_name = 'Default',
|
$user_domain_name = 'Default',
|
||||||
$username = 'nova',
|
$username = 'placement',
|
||||||
$auth_url = 'http://127.0.0.1:5000',
|
$auth_url = 'http://127.0.0.1:5000',
|
||||||
$region_name = $::os_service_default,
|
$region_name = $::os_service_default,
|
||||||
$endpoint_type = $::os_service_default,
|
$endpoint_type = $::os_service_default,
|
||||||
@ -75,11 +75,6 @@ class neutron::server::placement (
|
|||||||
|
|
||||||
include neutron::deps
|
include neutron::deps
|
||||||
|
|
||||||
# TODO(tobias-urdin): Update default value to placement in next release.
|
|
||||||
if $username == 'nova' {
|
|
||||||
warning('The default value of username will change to placement in the next release')
|
|
||||||
}
|
|
||||||
|
|
||||||
if is_service_default($system_scope) {
|
if is_service_default($system_scope) {
|
||||||
$project_name_real = $project_name
|
$project_name_real = $project_name
|
||||||
$project_domain_name_real = $project_domain_name
|
$project_domain_name_real = $project_domain_name
|
||||||
|
5
releasenotes/notes/placement-user-beabb88e260508e6.yaml
Normal file
5
releasenotes/notes/placement-user-beabb88e260508e6.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Defaut value of the ``neutron::server::placement::username`` has been
|
||||||
|
changed from ``nova`` to ``placement``.
|
@ -29,7 +29,7 @@ describe 'neutron::server::placement' do
|
|||||||
should contain_neutron_config('placement/project_name').with_value('services')
|
should contain_neutron_config('placement/project_name').with_value('services')
|
||||||
should contain_neutron_config('placement/system_scope').with_value('<SERVICE DEFAULT>')
|
should contain_neutron_config('placement/system_scope').with_value('<SERVICE DEFAULT>')
|
||||||
should contain_neutron_config('placement/user_domain_name').with_value('Default')
|
should contain_neutron_config('placement/user_domain_name').with_value('Default')
|
||||||
should contain_neutron_config('placement/username').with_value('nova')
|
should contain_neutron_config('placement/username').with_value('placement')
|
||||||
should contain_neutron_config('placement/password').with_value('secrete').with_secret( true )
|
should contain_neutron_config('placement/password').with_value('secrete').with_secret( true )
|
||||||
should contain_neutron_config('placement/auth_url').with_value('http://127.0.0.1:5000')
|
should contain_neutron_config('placement/auth_url').with_value('http://127.0.0.1:5000')
|
||||||
should contain_neutron_config('placement/region_name').with_value('<SERVICE DEFAULT>')
|
should contain_neutron_config('placement/region_name').with_value('<SERVICE DEFAULT>')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user