diff --git a/manifests/dashboards/heat.pp b/manifests/dashboards/heat.pp index 6b39cb34..8bfccbfa 100644 --- a/manifests/dashboards/heat.pp +++ b/manifests/dashboards/heat.pp @@ -48,11 +48,13 @@ class horizon::dashboards::heat( $policy_file_real = $policy_file } - if $::horizon::enable_user_pass != undef { + if $::horizon::enable_user_pass == undef or $::horizon::enable_user_pass == 'UNSET' { + $enable_user_pass_real = $enable_user_pass + } else { warning('The horizon::dashboards::heat::enable_user_pass parameter is ignored \ because horizon::enable_user_pass parameter is set.') + $enable_user_pass_real = $enable_user_pass } - $enable_user_pass_real = pick($::horizon::enable_user_pass, $enable_user_pass) $config_file = "${::horizon::params::conf_d_dir}/_1699_orchestration_settings.py" diff --git a/manifests/init.pp b/manifests/init.pp index e238d068..64d6fcad 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -445,7 +445,8 @@ # # [*enable_user_pass*] # (optional) Enable the password field while launching a Heat stack. -# Set this parameter to undef if horizon::dashboards::heat is used. +# Set this parameter to undef or 'UNSET' if horizon::dashboards::heat is +# used. # Defaults to true # # [*customization_module*] diff --git a/templates/local_settings.py.erb b/templates/local_settings.py.erb index 38349441..ad3fe81b 100644 --- a/templates/local_settings.py.erb +++ b/templates/local_settings.py.erb @@ -489,7 +489,7 @@ OPENSTACK_NEUTRON_NETWORK = { } <%-end-%> -<%- if ! (@enable_user_pass.nil?) -%> +<%- if ! (@enable_user_pass.nil? or @enable_user_pass == 'UNSET') -%> # The OPENSTACK_HEAT_STACK settings can be used to disable password # field required while launching the stack. #OPENSTACK_HEAT_STACK = {