Warn about new default placement username next release

Change-Id: I74ba02ce89d7ca2a2237a4f8aaa80c8b395dc862
This commit is contained in:
Tobias Urdin 2021-06-07 14:35:29 +02:00 committed by Takashi Kajinami
parent ea79d50ef5
commit c7759349c3
2 changed files with 17 additions and 6 deletions

View File

@ -17,7 +17,7 @@
# === Parameters
#
# [*password*]
# (required) Password for connection to nova in admin context.
# (required) Password for user used when talking to placement.
#
# [*auth_type*]
# (optional) An authentication type to use with an OpenStack Identity server.
@ -25,7 +25,7 @@
# Defaults to 'password'
#
# [*username*]
# (optional) Username for connection to nova in admin context
# (optional) Username when talking to placement.
# Defaults to 'nova'
#
# [*project_domain_name*]
@ -33,7 +33,7 @@
# Defaults to 'Default'
#
# [*project_name*]
# (optional) Nova project's name
# (optional) Project name for configured user.
# Defaults to 'services'
#
# [*user_domain_name*]
@ -41,18 +41,18 @@
# Defaults to 'Default'
#
# [*auth_url*]
# (optional) Authorization URL for connection to nova in admin context.
# (optional) Keystone auth URL.
# If version independent identity plugin is used available versions will be
# determined using auth_url
# Defaults to 'http://127.0.0.1:5000'
#
# [*region_name*]
# (optional) Name of nova region to use. Useful if keystone manages more than
# (optional) Name of region to use. Useful if keystone manages more than
# one region.
# Defaults to $::os_service_default
#
# [*endpoint_type*]
# (optional) The type of nova endpoint to use when looking up in
# (optional) The type endpoint to use when looking up in
# the keystone catalog.
# Defaults to $::os_service_default
#
@ -70,6 +70,11 @@ 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')
}
neutron_config {
'placement/auth_url': value => $auth_url;
'placement/username': value => $username;

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
The default value of neutron::server::placement::username is currently 'nova' but will be
changed to 'placement' in the next release. We recommend deployments to explicitly set it
to an appropriate value if the new value is not wanted.