diff --git a/manifests/inspector/authtoken.pp b/manifests/inspector/authtoken.pp index fc4597f5..034f06a7 100644 --- a/manifests/inspector/authtoken.pp +++ b/manifests/inspector/authtoken.pp @@ -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; diff --git a/manifests/inspector/ironic.pp b/manifests/inspector/ironic.pp index 6c7badfc..54b697ec 100644 --- a/manifests/inspector/ironic.pp +++ b/manifests/inspector/ironic.pp @@ -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 diff --git a/manifests/inspector/service_catalog.pp b/manifests/inspector/service_catalog.pp index 433ba1fd..2860abed 100644 --- a/manifests/inspector/service_catalog.pp +++ b/manifests/inspector/service_catalog.pp @@ -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 diff --git a/manifests/inspector/swift.pp b/manifests/inspector/swift.pp index 4d4ed839..ef286b42 100644 --- a/manifests/inspector/swift.pp +++ b/manifests/inspector/swift.pp @@ -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 diff --git a/releasenotes/notes/switch-to-ironic-inspector-user-702ad9a5eb605583.yaml b/releasenotes/notes/switch-to-ironic-inspector-user-702ad9a5eb605583.yaml new file mode 100644 index 00000000..5e451520 --- /dev/null +++ b/releasenotes/notes/switch-to-ironic-inspector-user-702ad9a5eb605583.yaml @@ -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``