From 1b5eab2809304c4d696743a6d33c8059e79e5f04 Mon Sep 17 00:00:00 2001 From: rabi Date: Wed, 19 Apr 2017 10:34:20 +0530 Subject: [PATCH] Add support for reauthentication_auth_method This adds support for setting reauthentication_auth_method flag in heat.conf. Change-Id: I247b02a50bb46ce16ca120961dd9c3df3e6026fd Partial-Bug: #1683983 --- manifests/engine.pp | 6 ++++++ .../notes/add_reauthentication_config-64e6d3c7a5f8d261.yaml | 4 ++++ spec/classes/heat_engine_spec.rb | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 releasenotes/notes/add_reauthentication_config-64e6d3c7a5f8d261.yaml diff --git a/manifests/engine.pp b/manifests/engine.pp index 171d68f4..6b313168 100644 --- a/manifests/engine.pp +++ b/manifests/engine.pp @@ -97,6 +97,10 @@ # (Optional) Enables engine with convergence architecture. # Defaults to $::os_service_default. # +# [*reauthentication_auth_method*] +# (Optional) Re-authentication method on token expiry. +# Defaults to $::os_service_default. +# # [*environment_dir*] # (Optional) The directory to search for environment files. # Defaults to $::os_service_default @@ -128,6 +132,7 @@ class heat::engine ( $max_resources_per_stack = $::os_service_default, $num_engine_workers = $::os_service_default, $convergence_engine = $::os_service_default, + $reauthentication_auth_method = $::os_service_default, $environment_dir = $::os_service_default, $template_dir = $::os_service_default, $max_nested_stack_depth = $::os_service_default, @@ -186,6 +191,7 @@ class heat::engine ( 'DEFAULT/instance_connection_is_secure': value => $instance_connection_is_secure; 'DEFAULT/num_engine_workers': value => $num_engine_workers; 'DEFAULT/convergence_engine': value => $convergence_engine; + 'DEFAULT/reauthentication_auth_method': value => $reauthentication_auth_method; 'DEFAULT/environment_dir': value => $environment_dir; 'DEFAULT/template_dir': value => $template_dir; 'DEFAULT/max_nested_stack_depth': value => $max_nested_stack_depth; diff --git a/releasenotes/notes/add_reauthentication_config-64e6d3c7a5f8d261.yaml b/releasenotes/notes/add_reauthentication_config-64e6d3c7a5f8d261.yaml new file mode 100644 index 00000000..3e99f0d6 --- /dev/null +++ b/releasenotes/notes/add_reauthentication_config-64e6d3c7a5f8d261.yaml @@ -0,0 +1,4 @@ +--- +features: + - Add new parameter 'reauthentication_auth_method' for + heat re-authentication configuration. diff --git a/spec/classes/heat_engine_spec.rb b/spec/classes/heat_engine_spec.rb index b209acb9..da4ef71b 100644 --- a/spec/classes/heat_engine_spec.rb +++ b/spec/classes/heat_engine_spec.rb @@ -15,6 +15,7 @@ describe 'heat::engine' do :default_software_config_transport => '', :default_deployment_signal_transport => '', :convergence_engine => '', + :reauthentication_auth_method => '', :environment_dir => '', :template_dir => '', :max_nested_stack_depth => '', @@ -44,6 +45,7 @@ describe 'heat::engine' do :default_deployment_signal_transport => 'CFN_SIGNAL', :num_engine_workers => '4', :convergence_engine => false, + :reauthentication_auth_method => 'trusts', :environment_dir => '/etc/heat/environment.d', :template_dir => '/etc/heat/templates', } @@ -88,6 +90,7 @@ describe 'heat::engine' do it { is_expected.to contain_heat_config('DEFAULT/max_resources_per_stack').with_value('') } it { is_expected.to contain_heat_config('DEFAULT/num_engine_workers').with_value( expected_params[:num_engine_workers] ) } it { is_expected.to contain_heat_config('DEFAULT/convergence_engine').with_value( expected_params[:convergence_engine] ) } + it { is_expected.to contain_heat_config('DEFAULT/reauthentication_auth_method').with_value( expected_params[:reauthentication_auth_method] ) } it { is_expected.to contain_heat_config('DEFAULT/environment_dir').with_value( expected_params[:environment_dir] ) } it { is_expected.to contain_heat_config('DEFAULT/template_dir').with_value( expected_params[:template_dir] ) } end