From 8cf73d99effdb42723e6cd76e491d966318be64a Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 6 May 2022 20:58:07 +0900 Subject: [PATCH] apache+mod_wsgi: Disable SSL by default During the previous cycle, a warning message was added to inform users of this change. Now the default value is updated so that SSL is disabled by default. Change-Id: Icd5632d624c215a699450ae3af5cb71fc3e44cd6 --- manifests/wsgi/apache.pp | 11 +++-------- .../notes/disable-apache-ssl-dc981c60fe16d6d7.yaml | 5 +++++ spec/classes/mistral_wsgi_apache_spec.rb | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 releasenotes/notes/disable-apache-ssl-dc981c60fe16d6d7.yaml diff --git a/manifests/wsgi/apache.pp b/manifests/wsgi/apache.pp index ecd586d..fb6d118 100644 --- a/manifests/wsgi/apache.pp +++ b/manifests/wsgi/apache.pp @@ -42,7 +42,7 @@ # # [*ssl*] # Use ssl ? (boolean) -# Optional. Defaults to true +# Optional. Defaults to false # # [*workers*] # Number of WSGI workers to spawn. @@ -110,7 +110,7 @@ class mistral::wsgi::apache ( $port = 8989, $bind_host = undef, $path = '/', - $ssl = undef, + $ssl = false, $workers = $::os_workers, $ssl_cert = undef, $ssl_key = undef, @@ -129,11 +129,6 @@ class mistral::wsgi::apache ( $vhost_custom_fragment = undef, ) { - if $ssl == undef { - warning('Default of the ssl parameter will be changed in a future release') - } - $ssl_real = pick($ssl, true) - include mistral::deps include mistral::params @@ -146,7 +141,7 @@ class mistral::wsgi::apache ( path => $path, priority => $priority, servername => $servername, - ssl => $ssl_real, + ssl => $ssl, ssl_ca => $ssl_ca, ssl_cert => $ssl_cert, ssl_certs_dir => $ssl_certs_dir, diff --git a/releasenotes/notes/disable-apache-ssl-dc981c60fe16d6d7.yaml b/releasenotes/notes/disable-apache-ssl-dc981c60fe16d6d7.yaml new file mode 100644 index 0000000..2641667 --- /dev/null +++ b/releasenotes/notes/disable-apache-ssl-dc981c60fe16d6d7.yaml @@ -0,0 +1,5 @@ +--- +upgrade: + - | + Default value of the ``mistral::wsgi::apache::ssl`` parameter has been + changed from ``true`` to ``false`` and now ssl is disabled by default. diff --git a/spec/classes/mistral_wsgi_apache_spec.rb b/spec/classes/mistral_wsgi_apache_spec.rb index e077bb2..1d03cdd 100644 --- a/spec/classes/mistral_wsgi_apache_spec.rb +++ b/spec/classes/mistral_wsgi_apache_spec.rb @@ -11,7 +11,7 @@ describe 'mistral::wsgi::apache' do :group => 'mistral', :path => '/', :servername => facts[:fqdn], - :ssl => true, + :ssl => false, :threads => 1, :user => 'mistral', :workers => facts[:os_workers], @@ -32,7 +32,7 @@ describe 'mistral::wsgi::apache' do :servername => 'dummy.host', :bind_host => '10.42.51.1', :port => 12345, - :ssl => false, + :ssl => true, :wsgi_process_display_name => 'mistral', :workers => 37, :access_log_file => '/var/log/httpd/access_log', @@ -52,7 +52,7 @@ describe 'mistral::wsgi::apache' do :group => 'mistral', :path => '/', :servername => 'dummy.host', - :ssl => false, + :ssl => true, :threads => 1, :user => 'mistral', :vhost_custom_fragment => 'Timeout 99',