Merge "inspector: Prepare to use ironic-inspector user by default"

This commit is contained in:
Zuul 2024-01-10 10:36:17 +00:00 committed by Gerrit Code Review
commit 40fc997ba1
5 changed files with 27 additions and 0 deletions

View File

@ -237,6 +237,10 @@ class ironic::inspector::authtoken(
include ironic::deps
if $username == 'ironic' {
warning('The default username will be changed to ironic-inspector in a future release')
}
keystone::resource::authtoken {
'ironic_inspector_config':
* => $params;

View File

@ -75,6 +75,10 @@ class ironic::inspector::ironic (
$retry_interval = $facts['os_service_default'],
) {
if $username == 'ironic' {
warning('The default username will be changed to ironic-inspector in a future release')
}
if is_service_default($system_scope) {
$project_name_real = $project_name
$project_domain_name_real = $project_domain_name

View File

@ -70,6 +70,10 @@ class ironic::inspector::service_catalog (
include ironic::deps
if $username == 'ironic' {
warning('The default username will be changed to ironic-inspector in a future release')
}
if is_service_default($system_scope) {
$project_name_real = $project_name
$project_domain_name_real = $project_domain_name

View File

@ -78,6 +78,10 @@ class ironic::inspector::swift (
$delete_after = $facts['os_service_default'],
) {
if $username == 'ironic' {
warning('The default username will be changed to ironic-inspector in a future release')
}
if is_service_default($system_scope) {
$project_name_real = $project_name
$project_domain_name_real = $project_domain_name

View File

@ -0,0 +1,11 @@
---
upgrade:
- |
Default value of the username parameters in the following classes will be
changed from ``ironic`` to ``ironic-inspector`` in a future release. Set
the username parameters explicitly to keep using the ``ironic`` user.
- ``ironic::inspector::authtoken``
- ``ironic::inspector::ironic``
- ``ironic::inspector::service_catalog``
- ``ironic::inspector::swift``