10 Commits

Author SHA1 Message Date
Takashi Kajinami
a258d3d8c7 Fix inconsistent parameter name of wsgi::apache
The nova::wsgi::apache class takes the api_port parameter to determine
the TCP port number, but this name is not commonly used while the port
parameter is used in the other modules. This change fixes the parameter
name so that we can keep the implementation more consistent.

Change-Id: I9d533275d5999fa02b438be1642f61b40a246161
2023-01-23 10:32:48 +09:00
Takashi Kajinami
3b6a8ccf9d Add Apache WSGI logging parameters for pipe/syslog
Add parameters for advanced logging configurations in Apache to
support piped logging and support for syslog (via mod_syslog
available in Apache >= 2.5.0)

Co-Authored-By: Andy Botting <andy@andybotting.com>
Change-Id: I1491f5b5a895b214e16263c9a2f57838911789be
2022-08-26 17:05:50 +09:00
Zuul
a5d0af0d73 Merge "Remove unused items from platform_params" 2022-08-11 18:29:27 +00:00
Takashi Kajinami
f4e8fc4700 Remove unused items from platform_params
Trivial-Fix

Change-Id: I96897b113ca77ee754d1b16a5859584675d485d1
2022-08-12 01:40:42 +09:00
Takashi Kajinami
434f22d885 Adapt to new type validation in puppetlabs-apache
The puppetlabs-apache module is enforcing more strict data type
validation[1].

This change updates the default values to adapt to that change.

[1] f41251e336

Closes-Bug: #1983300
Depends-on: https://review.opendev.org/851652
Change-Id: I102a35c38f100a729ccea7c955b7e015590f2500
2022-08-02 20:40:53 +09:00
Takashi Kajinami
34351eacda Expose headers option of apache::vhost
The headers option in apache::vhost is required in some case, for
example when adding the X-XSS-Protection header. This change allows
customizing the option for the api vhost.

This change also adds support for request_headers so that both request
headers and response headers can customized.

Change-Id: I23568d804f97c804f8883b49690f77d2119c4b87
2022-07-01 11:34:03 +09:00
Takashi Kajinami
57035a5f42 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: Ie8c6291188c039293ad9e3d6cee6fe3bd3d7fcdb
2022-05-06 21:02:39 +09:00
Takashi Kajinami
48194d48e0 Clean up direct dependencies on puppetlabs-apache
This change removes direct reference to some classes in
puppetlabs-apache. Details are explained below.

- The api class doesn't need access to anything defined in
  apache::params

- The following classes are included by the openstacklib::wsgi::apache
  resource type, and current inclusions are just redundant.

Change-Id: I4f103dc90dd0cb92d94bdc5edcdb9557262ff8e0
2021-12-08 23:12:13 +09:00
Takashi Kajinami
7395acbba0 Remove remaining usage of absolute class names
Change-Id: I4855c9505517a4cc6c3ccad48c40105d06a8bcfc
2020-11-26 11:49:54 +09:00
Takashi Kajinami
678c6523c2 Add unit tests for nova::wsgi::apache_metadata
Change-Id: I3a2cc8a591d72350deb964f08db14c3db8137e5c
2020-11-26 11:49:29 +09:00