Browse Source

Merge "barbican_service_user: Accept system scope credential"

changes/17/824817/1
Zuul 4 months ago committed by Gerrit Code Review
parent
commit
f280723cd0
  1. 6
      manifests/key_manager/barbican/service_user.pp
  2. 5
      releasenotes/notes/system_scope-barbican_service_user-8b435777fa3757d2.yaml
  3. 3
      spec/classes/cinder_key_manager_barbican_service_user_spec.rb

6
manifests/key_manager/barbican/service_user.pp

@ -27,6 +27,10 @@
# (Optional) Name of domain for $project_name
# Defaults to 'Default'
#
# [*system_scope*]
# (Optional) Scope for system operations.
# Defaults to $::os_service_default
#
# [*insecure*]
# (Optional) If true, explicitly allow TLS without checking server cert
# against any certificate authorities. WARNING: not recommended. Use with
@ -65,6 +69,7 @@ class cinder::key_manager::barbican::service_user(
$project_name = 'services',
$user_domain_name = 'Default',
$project_domain_name = 'Default',
$system_scope = $::os_service_default,
$insecure = $::os_service_default,
$auth_type = 'password',
$auth_version = $::os_service_default,
@ -83,6 +88,7 @@ class cinder::key_manager::barbican::service_user(
project_name => $project_name,
user_domain_name => $user_domain_name,
project_domain_name => $project_domain_name,
system_scope => $system_scope,
insecure => $insecure,
auth_type => $auth_type,
auth_version => $auth_version,

5
releasenotes/notes/system_scope-barbican_service_user-8b435777fa3757d2.yaml

@ -0,0 +1,5 @@
---
features:
- |
The ``cinder::key_manager::barbican::service_user`` class now supports
the ``system_scope`` parameter.

3
spec/classes/cinder_key_manager_barbican_service_user_spec.rb

@ -16,6 +16,7 @@ describe 'cinder::key_manager::barbican::service_user' do
:project_name => 'services',
:user_domain_name => 'Default',
:project_domain_name => 'Default',
:system_scope => '<SERVICE DEFAULT>',
:insecure => '<SERVICE DEFAULT>',
:auth_type => 'password',
:auth_version => '<SERVICE DEFAULT>',
@ -35,6 +36,7 @@ describe 'cinder::key_manager::barbican::service_user' do
:project_name => 'alt_services',
:user_domain_name => 'Domain1',
:project_domain_name => 'Domain2',
:system_scope => 'all',
:insecure => false,
:auth_type => 'v3password',
:auth_version => 'v3',
@ -53,6 +55,7 @@ describe 'cinder::key_manager::barbican::service_user' do
:project_name => 'alt_services',
:user_domain_name => 'Domain1',
:project_domain_name => 'Domain2',
:system_scope => 'all',
:insecure => false,
:auth_type => 'v3password',
:auth_version => 'v3',

Loading…
Cancel
Save