From 8dc937e84d34692577da2b074db3b82a3b01e2e7 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sat, 12 Oct 2024 12:18:50 +0900 Subject: [PATCH] Expose configure_service This parameter has been implemented in the underlying defined resource type but was not configurable. Change-Id: I0165b801e2b749587f4942757348cdfb9f9f8425 --- manifests/keystone/auth.pp | 6 ++++++ releasenotes/notes/configure_service-a1d6962c8833e640.yaml | 5 +++++ spec/classes/trove_keystone_auth_spec.rb | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 releasenotes/notes/configure_service-a1d6962c8833e640.yaml diff --git a/manifests/keystone/auth.pp b/manifests/keystone/auth.pp index 3524509d..d0dedd12 100644 --- a/manifests/keystone/auth.pp +++ b/manifests/keystone/auth.pp @@ -60,6 +60,10 @@ # (Optional) Should Trove user_role be configured? # Defaults to true. # +# [*configure_service*] +# (Optional) Should the service be configurd? +# Defaults to True +# # [*service_type*] # (Optional) Type of service. # Defaults to 'database'. @@ -110,6 +114,7 @@ class trove::keystone::auth ( Boolean $configure_user = true, Boolean $configure_user_role = true, Boolean $configure_endpoint = true, + Boolean $configure_service = true, String[1] $service_name = 'trove', String[1] $service_type = 'database', String[1] $service_description = 'Trove Database Service', @@ -127,6 +132,7 @@ class trove::keystone::auth ( configure_user => $configure_user, configure_user_role => $configure_user_role, configure_endpoint => $configure_endpoint, + configure_service => $configure_service, service_name => $service_name, service_type => $service_type, service_description => $service_description, diff --git a/releasenotes/notes/configure_service-a1d6962c8833e640.yaml b/releasenotes/notes/configure_service-a1d6962c8833e640.yaml new file mode 100644 index 00000000..ecb577d6 --- /dev/null +++ b/releasenotes/notes/configure_service-a1d6962c8833e640.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + The new ``trove::keystone::auth::configure_service`` parameter has been + added. diff --git a/spec/classes/trove_keystone_auth_spec.rb b/spec/classes/trove_keystone_auth_spec.rb index 94bddc61..900f46e2 100644 --- a/spec/classes/trove_keystone_auth_spec.rb +++ b/spec/classes/trove_keystone_auth_spec.rb @@ -15,6 +15,7 @@ describe 'trove::keystone::auth' do :configure_user => true, :configure_user_role => true, :configure_endpoint => true, + :configure_service => true, :service_name => 'trove', :service_type => 'database', :service_description => 'Trove Database Service', @@ -44,6 +45,7 @@ describe 'trove::keystone::auth' do :configure_endpoint => false, :configure_user => false, :configure_user_role => false, + :configure_service => false, :service_description => 'Alternative Trove Database Service', :service_name => 'alt_service', :service_type => 'alt_database', @@ -57,6 +59,7 @@ describe 'trove::keystone::auth' do :configure_user => false, :configure_user_role => false, :configure_endpoint => false, + :configure_service => false, :service_name => 'alt_service', :service_type => 'alt_database', :service_description => 'Alternative Trove Database Service',