439 Commits

Author SHA1 Message Date
Tobias Urdin
7d5258c9a9 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: Id77056322ad610006ac0f216870d679b250ab702
2023-06-26 00:06:57 +02:00
Takashi Kajinami
6d2b3f4d04 replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: I0808e8a311121e281b20f7493ae6bde6ef0a6929
2023-06-20 13:31:56 +09:00
Takashi Kajinami
b740fc30f3 Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: Ifa4e8e626d8719de0d889de48b762d618245cdf7
2023-05-22 12:33:04 +09:00
Takashi Kajinami
34fd489607 Bump upper version of puppetlabs-inifile
... because now we use v6.0.0 in CI jobs.

Depends-on: https://review.opendev.org/880118
Change-Id: I87e736e3b0bc1497c39ba177204a87652087a5ab
2023-04-14 11:57:00 +09:00
48e44f2497 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: I91ff73c52035a42934c6af969bc5830f81f87d1c
2023-04-05 15:37:34 +00:00
Takashi Kajinami
a25a11d985 Prepare 2023.1 release
Change-Id: I04da9861666f171a80fafee11e0b303b8dae34ee
22.0.0
2023-03-23 22:30:14 +09:00
Takashi Kajinami
15124a60a2 Add strict validation about boolean parameters
This ensures the parameters used by if-else logic accept only boolean
values because non-boolean can result in unexpected behavior.

Change-Id: I8c2bd97681130da33974e4ea707f77f44e160ce2
2023-03-19 22:40:26 +09:00
Takashi Kajinami
9ae179cd51 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: If6eb852b44673ea6b6a629aa1381b78bb6ae5646
2023-03-02 12:51:11 +09:00
Takashi Kajinami
d72accf703 Expose policy_default_rule
The option has been managed by the underlying puppet-oslo module but
has not been configurable. This introduces the parameter to customize
the option.

Change-Id: Iac1ebf8af8900e9e351ef359f1c5c2e4c1704d00
2023-01-23 14:43:31 +09:00
Takashi Kajinami
b9c8d0a2aa Switch to Ubuntu Jammy (22.04)
... because Focal no longer supports the recent releases such as Zed.

Change-Id: I38e3eb00de72afe761e6b278881437753e83ecd5
2023-01-15 22:34:46 +09:00
Takashi Kajinami
9d64b592ba Remove logic for CentOS 8/RHEL 8
... because CentOS 8 and RHEL 8 are no longer supported by RDO since
Zed release.

Change-Id: Ia13da06587e9d44049945952fb754333a529b0ef
2022-11-21 23:57:27 +09:00
670a6e5df1 Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I681e24c50302f3b3156aa057894c328a63c83563
2022-10-20 11:14:45 +00:00
Takashi Kajinami
7018bff222 Prepare Zed RC1
Change-Id: I0cfb7bb1d9b2829494d0e27a6c9813b277f6243a
21.0.0
2022-10-05 18:36:10 +09:00
Takashi Kajinami
48b9f85338 Use standard parameter description format for wsgi::apache
Currently parameter description of the <module>::wsgi::apache classes
are formatted differently in individual modules, and this is making
the maintenance effort quite difficult.

This change updates the description format following the standard one
we are globally using in our modules to reduce undesired differences
between modules.

Change-Id: I73044b81e5ea8b41693718c3f3b900237300698e
2022-08-28 00:28:59 +09:00
Takashi Kajinami
a46ebb674b Fix typos in parameter descriptions
Change-Id: I79e28bffadce8b140896b7304addf1c6cb9d0ebe
2022-08-28 00:28:21 +09:00
Takashi Kajinami
d34f26c319 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: If07cac9bc41d173baeadbefb4dad3612c32ee369
2022-08-26 17:46:20 +09:00
Zuul
db397318f7 Merge "Remove unused items from platform_params" 2022-08-11 18:03:38 +00:00
Takashi Kajinami
f2eeaf1e22 Remove unused items from platform_params
Trivial-Fix

Change-Id: Ibd542cd5bc15d7573da6d605578344e2648d6af6
2022-08-12 01:34:02 +09:00
Takashi Kajinami
e803994bbf 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: Ic4160b208ff1d728cab2b77c9261cb18deec8c27
2022-08-02 23:15:39 +09:00
Zuul
5bfe646a17 Merge "Expose headers option of apache::vhost" 2022-07-30 15:13:34 +00:00
Takashi Kajinami
668ed60043 Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit 1e36ec00e51c66c93a9e93983189a964a0c95c30.

Reason for revert:
puppet-postgresql 8.1.0 was released and now the module supports RHEL 9
(and CentOS 9 effectively).

Note:
This change adds the service_provider fact in test fact data because
it is required by puppet-postgresql.

Depends-on: https://review.opendev.org/850705
Change-Id: Ia74b45251e22419d44713f3be85cbf0591504ccb
2022-07-24 01:04:54 +09:00
Zuul
7cb4e156da Merge "Add acceptance tests for config management resources" 2022-07-15 19:37:10 +00:00
Takashi Kajinami
84591e2dbf Fix wrong test description
The value with a white space should be accepted instead of being
rejected. This change fixes the wrong test case description and makes
sure the description explains what is actually tested.

Change-Id: I4fb445a86398abc0f7b060c6d28cf94cbb2d0b3d
2022-07-15 11:57:19 +09:00
Takashi Kajinami
47350858ed Add acceptance tests for config management resources
Change-Id: Idd5f3ffebbed6c96417452b8d283c4dd3da191c8
2022-07-10 13:32:06 +09:00
Takashi Kajinami
5d3e8252d6 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: Ie5f2669a8686a3546b652251881615e0e18bf433
2022-07-01 11:37:02 +09:00
Takashi Kajinami
ff956c7a5b Remove deprecated parameters for websocket service user
... because these parameters were deprecated during Yoga cycle[1] and
have had no effect since then.

[1] 7eeb46e04d61189925dbbaa06d3016a0235d6200

Change-Id: I6b2ee2e3e9fb633f5f3c6fa9b2e4106e5430484e
2022-06-19 22:04:51 +09:00
Takashi Kajinami
d3e8ce069a Remove support for CentOS 8 Stream
... because RDO will provide packages for only CentOS Stream 9 for Zed
release. This change removes RHEL 8 as well.

Depends-on: https://review.opendev.org/843503
Change-Id: I41a09ca923b887e428a75a788cbe4e047ccf26e0
2022-06-01 14:08:08 +09:00
Takashi Kajinami
f25c60a03b Fix missing updates of deprecated parameters
This is follow-up of 7eeb46e04d61189925dbbaa06d3016a0235d6200 and fixes
the following two points.
 - tenant_name is deprecated but a proper warning message is missing
 - password is deprecated and now is optional, but it is still
   validated

Closes-Bug: #1973315
Change-Id: I169d42dee4896843e55d4989dc440ad7e7c7ec94
2022-05-13 11:58:47 +00:00
Takashi Kajinami
411e1ea3fe 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: I17cd1a7adcc09168d3f53f44787858ef1d89a0a7
2022-05-06 22:21:32 +09:00
f8524ec308 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: I1702d6d42ef9e8b40c38ddfae9cfd513a8cbd2b6
2022-04-05 09:16:52 +00:00
Jiri Podivin
59a2163128 setuptools: Disable auto discovery
The latest release of setuptools 61.0 made a breaking change[1] and
because of this change `pip install` fails with the following error.

~~~
error: Multiple top-level packages discovered in a flat-layout:
['lib', 'spec', 'manifests', 'releasenotes'].
~~~

Users that don't set ``packages``, ``py_modules``, or `configuration`
are still likely to observe the auto-discovery behavior, which may
halt the build if the project contains multiple directories and/or
multiple Python files directly under the project root.

To disable auto discovery, one can do below in setup.py

~~~
setuptools.setup(..,packages=[],..)
~~~

or

~~~
setuptools.setup(..,py_modules=[],..)
~~~

[1] https://github.com/pypa/setuptools/issues/3197

Note setup.py is not used to install puppet modules. However it is used
to generate a release note, thus should be fixed.

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I6468b31a73339b823f15b70c1e2d5cac450a5ee6
20.3.0
2022-03-29 17:22:14 +09:00
Takashi Kajinami
753bf02a67 Prepare Yoga RC1
Change-Id: If049a54e3bb7a1d18588b5e617c8eab88dfc305f
2022-03-12 00:34:34 +09:00
Takashi Kajinami
2f89bc9979 remove unicode literal from code
All strings are considered as unicode string from Python 3.

This patch drops the explicit unicode literal (u'...')
appearances from the unicode strings.

Change-Id: I31ffc4c99e12330cafd66810e0035388b5f33af6
Co-Authored-By: LiZekun <2954674728@qq.com>
2022-03-08 09:27:37 +09:00
ZhongShengping
64b0fe7524 Prepare Yoga M3
Update the version metadata for Yoga milestone M3

Change-Id: I2026a668385d0fd5c6707c8a2274725aebc7d675
20.2.0
2022-02-27 13:24:02 +00:00
Zuul
0dc840d12f Merge "Add CentOS/RHEL 9 to supported operating systems" 2022-02-24 15:30:04 +00:00
Zuul
ebcec456e5 Merge "Avoid hard-coding OS user/group in each manifest" 2022-02-22 20:10:59 +00:00
Takashi Kajinami
263f4ae329 Add CentOS/RHEL 9 to supported operating systems
... because these operating systems are now verified by unit tests and
integration tests.

Change-Id: I26f192685973a8e721ef52e7a7c3bb45478a275f
2022-02-23 01:39:57 +09:00
Takashi Kajinami
b25f7f6277 Avoid hard-coding OS user/group in each manifest
and replace hard-codes by definition in params.pp .

Change-Id: Iadd122b33ac826902468541263f87176a556bd30
2022-02-21 01:44:32 +09:00
Takashi Kajinami
8ad1daf24f CentOS 9: Fix unit tests for zaqar::wsgi::apache
Change-Id: I12e82c520450584fc78e830a32551d6553c5030f
2022-02-16 01:40:04 +09:00
Takashi Kajinami
1e36ec00e5 CentOS 9: Disable unit tests dependent on puppet-postgresql
The puppt-postgresql module does not support CentOS 9 yet and requires
some version parameters to be run on CentOS 9. This change disables
unit tests requiring that module, until the module supports CentOS 9.

Change-Id: I7093330bdbae4965954d4a2a5f5d6a2c56fd15e1
2022-02-16 00:31:34 +09:00
Zuul
abc8b1ff74 Merge "Do not define service resource when service management is disabled" 2022-02-15 10:47:23 +00:00
Zuul
862cc8b798 Merge "Fix missing service tag when httpd+mod_wsgi is used" 2022-02-15 10:47:21 +00:00
Takashi Kajinami
519643dde9 Do not define service resource when service management is disabled
Change-Id: Iabaeb38771beafaff995cebfa29ad128ed0a71e0
2022-02-10 13:59:25 +09:00
Takashi Kajinami
3505adfb00 Fix missing service tag when httpd+mod_wsgi is used
Change-Id: Ic9f4caacfd59f3a3e06cc4216fce3f298fcd9f1a
2022-02-10 13:58:53 +09:00
Takashi Kajinami
f92eb34785 Ensure keystone resources are created during service startup
This change ensures keystone resources like the mistral service user
are created before completing service setup, so that we can use
the service::end anchor to ensure Zaqar service is fully available.

Change-Id: I5989b330cd55328510cc1bb20b6c00eeac18353b
2022-02-07 00:26:13 +09:00
Zuul
bfd3346540 Merge "Add socket keepalive options for the pymemcache backend" 2022-01-28 09:39:45 +00:00
Takashi Kajinami
4026124a72 Add socket keepalive options for the pymemcache backend
This patch specifies a set of options required to setup the socket
keepalive feature of pymemcache (dogpile.cache) cache backend.

Original oslo.cache change:
https://review.opendev.org/c/openstack/oslo.cache/+/803716

Co-Authored-By: Grzegorz Grasza <xek@redhat.com>
Depends-On: https://review.opendev.org/807851
Change-Id: I683f1328ab68839b4877e91513cae206656a6ad2
2022-01-27 20:40:17 +09:00
Takashi Kajinami
60f1b574d9 Fix duplicate (Optional) in parameter description
Trivial-Fix

Change-Id: I2e7e87a346445b19abc0d99d10d465cecebfaa03
2022-01-27 20:37:04 +09:00
Zuul
5965ec9c5b Merge "Fix dependency to purge default vhost config" 2022-01-12 17:23:37 +00:00
Takashi Kajinami
2fb01b0a85 Fix dependency to purge default vhost config
It turned out defining dependency for openstacklib::wsgi::apache
doesn't properly enforce resource order and the default vhost file
is not purged properly.
This change adds the more explicit dependency to enforce the order
properly.

Change-Id: I5d03a133bb9d6e8a5ed67b7b06ee73608cff37ee
2022-01-11 18:54:34 +09:00