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] c7759349c3

Change-Id: I6973ed3564fcda0ddcb308382d7c42d25cb44a65
This commit is contained in:
Takashi Kajinami 2022-02-04 19:30:40 +09:00
parent e7d5127531
commit 2993196301
3 changed files with 8 additions and 8 deletions

View File

@ -42,7 +42,7 @@
#
# [*username*]
# (optional) Username when talking to placement.
# Defaults to 'nova'
# Defaults to 'placement'
#
# [*auth_url*]
# (optional) Keystone auth URL.
@ -67,7 +67,7 @@ class neutron::server::placement (
$project_name = 'services',
$system_scope = $::os_service_default,
$user_domain_name = 'Default',
$username = 'nova',
$username = 'placement',
$auth_url = 'http://127.0.0.1:5000',
$region_name = $::os_service_default,
$endpoint_type = $::os_service_default,
@ -75,11 +75,6 @@ class neutron::server::placement (
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) {
$project_name_real = $project_name
$project_domain_name_real = $project_domain_name

View File

@ -0,0 +1,5 @@
---
upgrade:
- |
Defaut value of the ``neutron::server::placement::username`` has been
changed from ``nova`` to ``placement``.

View File

@ -29,7 +29,7 @@ describe 'neutron::server::placement' do
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/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/auth_url').with_value('http://127.0.0.1:5000')
should contain_neutron_config('placement/region_name').with_value('<SERVICE DEFAULT>')