From 012583523e7109be33642c234d9fb2acc3a8d647 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 12 Oct 2024 12:21:28 +0900 Subject: [PATCH] Expose configure_service This parameter has been implemented in the underlying defined resource type but was not configurable. Change-Id: I10cd07571763281eda7c5dafcd75ad63b12ea469 --- manifests/keystone/auth.pp | 6 ++++++ releasenotes/notes/configure_service-2af61120e1959b40.yaml | 5 +++++ spec/classes/watcher_keystone_auth_spec.rb | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 releasenotes/notes/configure_service-2af61120e1959b40.yaml diff --git a/manifests/keystone/auth.pp b/manifests/keystone/auth.pp index 526f938..1ea403f 100644 --- a/manifests/keystone/auth.pp +++ b/manifests/keystone/auth.pp @@ -43,6 +43,10 @@ # (Optional) Should the admin role be configured for the service user? # Defaults to true. # +# [*configure_service*] +# (Optional) Should the service be configurd? +# Defaults to True +# # [*service_type*] # (Optional) Type of service. # Defaults to 'infra-optim'. @@ -85,6 +89,7 @@ class watcher::keystone::auth ( Boolean $configure_endpoint = true, Boolean $configure_user = true, Boolean $configure_user_role = true, + Boolean $configure_service = true, Optional[String[1]] $service_name = undef, String[1] $service_description = 'Infrastructure Optimization service', String[1] $service_type = 'infra-optim', @@ -104,6 +109,7 @@ class watcher::keystone::auth ( configure_user => $configure_user, configure_user_role => $configure_user_role, configure_endpoint => $configure_endpoint, + configure_service => $configure_service, service_name => $real_service_name, service_type => $service_type, service_description => $service_description, diff --git a/releasenotes/notes/configure_service-2af61120e1959b40.yaml b/releasenotes/notes/configure_service-2af61120e1959b40.yaml new file mode 100644 index 0000000..eb69c3e --- /dev/null +++ b/releasenotes/notes/configure_service-2af61120e1959b40.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + The new ``watcher::keystone::auth::configure_service`` parameter has been + added. diff --git a/spec/classes/watcher_keystone_auth_spec.rb b/spec/classes/watcher_keystone_auth_spec.rb index 10938b5..84640b0 100644 --- a/spec/classes/watcher_keystone_auth_spec.rb +++ b/spec/classes/watcher_keystone_auth_spec.rb @@ -15,6 +15,7 @@ describe 'watcher::keystone::auth' do :configure_user => true, :configure_user_role => true, :configure_endpoint => true, + :configure_service => true, :service_name => 'watcher', :service_type => 'infra-optim', :service_description => 'Infrastructure Optimization service', @@ -44,6 +45,7 @@ describe 'watcher::keystone::auth' do :configure_endpoint => false, :configure_user => false, :configure_user_role => false, + :configure_service => false, :service_description => 'Alternative Infrastructure Optimization service', :service_name => 'alt_service', :service_type => 'alt_infra-optim', @@ -57,6 +59,7 @@ describe 'watcher::keystone::auth' do :configure_user => false, :configure_user_role => false, :configure_endpoint => false, + :configure_service => false, :service_name => 'alt_service', :service_type => 'alt_infra-optim', :service_description => 'Alternative Infrastructure Optimization service',