15 Commits

Author SHA1 Message Date
Takashi Kajinami
f6ab996e63 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ib4f33d08f9415b4a8533ec6b9b0e6d7637f4e289
2023-03-02 12:46:14 +09:00
Takashi Kajinami
4faa434742 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: Iaf3e13cbda1cf5fe25f8c4b9fb945f13fa4f30f3
2022-08-26 17:45:55 +09:00
Takashi Kajinami
652a0199d4 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: I463c2a8cd1b08330633f676ee0f4e66eb62c51d9
2022-08-02 23:29:16 +09:00
Takashi Kajinami
fd5376481f 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: I3f0777ec48dd0196ad82b902ab2c3f54cf170717
2022-07-01 16:18:26 +09:00
Takashi Kajinami
959248c203 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: I72ddec25f8a7d747ab2816f2b76aae2f07ccfeba
2022-05-06 21:09:04 +09:00
Takashi Kajinami
b1ab43e98c Use generated script instead of app.wsgi
because app.wsgi was deprecated by [1].

[1] c1a5e443fee632192af0b4f8488d900bbbba6149

Change-Id: Ie57cff772e13ea0c1c8bbc13d67b29ea8dbcd08d
2022-02-04 08:36:59 +09:00
Takashi Kajinami
9fa27011a5 Remove usage of custom os_package_type fact
Currently we support usage of distro packages only, and this custom
fact can be simply replaced by the default fact.

Change-Id: Ie9000665e796de88195298016146957f6b6fa862
2022-01-06 08:18:13 +09:00
Takashi Kajinami
6988308632 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: Ifff233efa0cd6673ba58d13fc28f0a1bea09859c
2021-12-08 22:55:26 +09:00
zhangboye
db032d6829 Drop Fedora support
Fedora support is never tested, and has been unmaintained for a while.
Because we don't expect any actual user using OpenStack on Fedora, this
change drops support for Fedora directly.

Change-Id: Ia6de5e2c389edaecd560f1f13a19fcf17b9f6bb5
2021-06-15 11:32:57 +00:00
Takashi Kajinami
855a5c8e44 Use workers instead of threads in wsgi by default
In most of puppet-openstack modules, we use workers instead of threads
in wsgi to realize concurrency of api process by default.

This patch makes puppet-watcher follow that standard configuration,
so that the default setup can be more consistent among all modules.

Change-Id: Iac7cba33f69b39e5bf29c61ed0c22b9b533b1293
2020-07-05 00:07:33 +09:00
Takashi Kajinami
a2251c58e9 Expect Python3.6 instead of Python2.7 on CentOS8 and Fedora
Change-Id: Ic62b0684deea2d9bc3135ee14d3d5d0b4d256b60
2020-04-30 00:28:28 +09:00
Tobias Urdin
4eadce4d0e Inherit pyvers from openstacklib::defaults
Change-Id: I483e300e898c37b2de7b48966a465dfa4570232d
2019-01-18 09:53:50 +01:00
ZhongShengping
331bf7326a add parameter to overwrite/add wsgi process options
Add parameter to apache_wsgi to allow overwrite
and/or add additional wsgi process options.

This possibility was added to openstacklib
with Change-Id: I41914ce3361988d5db1695f09d21209772fdf548
lease enter the commit message for your changes. Lines starting

Change-Id: Ieab1cfea6bbf026b783c701e7631fb38c21061c4
2017-10-23 14:13:37 +08:00
ZhongShengping
0c4b3bde4e Allow setting log files for apache vhost
This allows the setting of the error and access file logs, as well as
the access log format. This was done in a similar fashion as one can
configure these ones in the keystone wsgi manifest.

Change-Id: Ib96107448fa8dde4bae799144d529f85019b1d98
2017-10-12 09:54:44 +08:00
ZhongShengping
9d2a0fb198 Add WSGI support for `watcher-api'
Adds support to run watcher-api with mod-wsgi[0].

[0]https://review.openstack.org/#/c/450740/

Change-Id: Ie6bbde98bee19ccc4a938bba28b66b759ccd3307
Implements: blueprint wsgi-support
2017-08-15 13:56:44 +08:00