Prepare to update default of <service>::wsgi::apache::ssl
Currently the <service>::wsgi::apache::ssl parameters have inconsistent default values. Some parameters default to true while the other default to false. Based on the following points, false is considered to be the more reasonable default. - Usage of SSL is optional and is not always required - There are other methods(like load-balancer) to implement SSL termination - Enabling SSL doesn't work with the default values currently defined, and requires additional parameters like ssl_cert. - false is the default value defined in the base implementation in puppet-openstacklib. This change is the preparation to change the default value, and introduces a warning message to make users aware of the future change. Change-Id: I370b14aded25efa06874de41e39a55783e72f5e8
This commit is contained in:
parent
8a291e2967
commit
93c5d0a4a7
@ -138,7 +138,7 @@ class keystone::wsgi::apache (
|
||||
$bind_host = undef,
|
||||
$api_port = 5000,
|
||||
$path = '/',
|
||||
$ssl = true,
|
||||
$ssl = undef,
|
||||
$workers = $::os_workers_keystone,
|
||||
$ssl_cert = undef,
|
||||
$ssl_key = undef,
|
||||
@ -165,6 +165,11 @@ class keystone::wsgi::apache (
|
||||
$custom_wsgi_process_options = {},
|
||||
) inherits keystone::params {
|
||||
|
||||
if $ssl == undef {
|
||||
warning('Default of the ssl parameter will be changed in a future release')
|
||||
}
|
||||
$ssl_real = pick($ssl, true)
|
||||
|
||||
include keystone::deps
|
||||
|
||||
# TODO(tobias-urdin): This dependency chaining can be moved to keystone::deps
|
||||
@ -201,7 +206,7 @@ class keystone::wsgi::apache (
|
||||
threads => $threads,
|
||||
user => $::keystone::params::keystone_user,
|
||||
priority => $priority,
|
||||
ssl => $ssl,
|
||||
ssl => $ssl_real,
|
||||
ssl_cert => $ssl_cert,
|
||||
ssl_key => $ssl_key,
|
||||
ssl_chain => $ssl_chain,
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
Default value of the ``keystone::wsgi::apache::ssl`` parameter will be
|
||||
changed from ``true`` to ``false`` in a future release. Make sure
|
||||
the parameter is set to the desired value.
|
Loading…
Reference in New Issue
Block a user