Commit Graph

285 Commits

Author SHA1 Message Date
Takashi Kajinami 2013f99622 Use undef for package/service name
... instead of booleans, so that we can implement type enforcement
more easily.

Change-Id: I5d327a665e18cdaeaa9cdaea85a6fc92f320098d
2024-03-12 13:54:08 +00:00
Zuul 7f02cb0ea0 Merge "Refactor resource dependencies" 2024-02-29 08:15:28 +00:00
OpenStack Release Bot d680ffa2cb reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Idec16168342dfd1f84861eca804e85f4b91e54fb
2024-02-21 16:50:52 +00:00
Takashi Kajinami 7fe2730094 Refactor resource dependencies
This refactors resource dependencies to improve the following points.

 - Avoid unnecessary dependencies across services. For example aodh
   service does not require cinder db.

 - Restart only api service when config files like paste.ini, which
   are used only be api service is changed.

This also removes the unused placement-support-package tag.

Change-Id: I31bac02c5895dc6f4090c1012db14bcdc1100aa3
2024-02-17 21:24:28 +09:00
Zuul ce90275fb2 Merge "Use new openstackclient tag" 2023-11-20 18:55:14 +00:00
Takashi Kajinami 4eb7e9ba22 Use new openstackclient tag
The new openstackclient tag was added so that we can get all resources
about openstack CLI more easily. This adds this tag to osc-placement
because the plugin provides some sub-commands.

This also removes the support package tag because the plguin is not
at all used by placement itself.

Depends-on: https://review.opendev.org/899594
Change-Id: I77f261c060e8c3fe982deb1f442f47df6bf01310
2023-11-20 00:47:57 +09:00
Takashi Kajinami 5f28ff76de Bump supported Debian version to 12 (Bookworm)
Debian 12 was released in June 2023. Recent versions of OpenStack
(actually, 2023.1 and later) no longer support Debian 11.

Change-Id: I24f99270d8a31dffb4796a7f7c0e19684d533860
2023-11-18 09:21:07 +00:00
OpenStack Release Bot 5f5bde3be6 Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: I68fbfe446c911a73aad04108a77ebab63dd180c6
2023-10-16 15:19:42 +00:00
Takashi Kajinami 45ec0662fb Remove usage of deleted manifest_dir
Recent update in rspec-puppet removed some of the config interfaces for
old puppet versions[1]. This drops usage of these interfaces to resolve
the following error in unit tests.

```
An error occurred while loading ./spec/unit/provider/manila_spec.rb.
Failure/Error: c.manifest_dir = File.join(fixture_path, 'manifests')

NoMethodError:
  undefined method `manifest_dir='...
```

[1] 316d95923c

Change-Id: I2349b8c5259dc7c2069d3263b87c80c292557108
2023-10-11 12:08:16 +09:00
Zuul 8308321fbd Merge "Prepare 2023.2 release" 2023-10-03 17:20:33 +00:00
Takashi Kajinami 8d44507133 Prepare 2023.2 release
Change-Id: I7c63b48d82733720e15e12702502b291dc45c5e9
2023-10-03 17:13:32 +09:00
Takashi Kajinami 28c49023c5 Bump upper version of stdlib
... because we are currently using v9.0.0 in CI. Lower version may be
bumped after 2023.2 release.

Change-Id: I183d4fdfe1424d9fe3718c80b00d2b52c6d6383c
2023-10-03 13:21:13 +09:00
Takashi Kajinami 990fd9981d Do not restart services after policy file changes
The oslo.policy library has implementations to detect change in policy
rules and reload the new rules without service restart.

Change-Id: I4787f344f7ee44e2c0f93bbf7da6de3c3ba83415
2023-09-11 12:32:20 +09:00
Takashi Kajinami 71fa273818 Exclude release note files
The directory contains the source files to generate the release note
document, so is not required.

Change-Id: I4f03f3855f5246f3f0218494498ba5fbcecfb1de
2023-08-11 17:58:45 +09:00
Takashi Kajinami c01797fedc Add .pdkignore to exclude some files from tar ball
We've seen release job failures caused by too large tarball, which
contains irrelevant files like git history.

Let's exclude these files to reduce size of the archive.

The file is copied from the puppetlabs repositories with some files
specific to OpenStack projects added.

Change-Id: Ie129752534269d4b234bc862c0ddf6cc11bb0085
2023-08-11 00:51:18 +09:00
Takashi Kajinami cb9d3c9f1f Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: I637f94a04511256c0d69284522d7ba73a0332c5d
2023-07-22 23:51:58 +09:00
Takashi Kajinami fd3c9bf640 authtoken: Make password required
The password parameter is not really optional. This makes it
a required parameter to give more sensible validation error.

Change-Id: Ib95a8e4ec5d5f3b2b3ad9a32cb2e93873b529b62
2023-07-12 22:05:57 +09:00
Tobias Urdin 11e694b010 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: Iaf0bae66224d568a2a05f4ac5281c36bde2705e0
2023-06-26 00:06:11 +02:00
Benedikt Trefzer f6ba76c00b replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: If29a88bdb31e26a6e95cca854385ae0960a5e05f
2023-06-06 08:09:15 +02:00
Takashi Kajinami 95399aeca0 Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: Idf1ac63fc77f9034895d8e6fd80fa30fc0cf95dd
2023-05-22 12:29:23 +09:00
Takashi Kajinami 9f999e27b9 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: I3cd552eb2bc885269e4025c593bca200d734a734
2023-04-14 11:54:05 +09:00
OpenStack Release Bot 72084a4ea5 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: I8af9673e0aeade21a9dac999930f3bf52747b785
2023-04-05 15:35:17 +00:00
Takashi Kajinami 0a92007609 Prepare 2023.1 release
Change-Id: I9e21c4f084c6c6cd14358137af3f722d175230c9
2023-03-23 22:26:39 +09:00
Takashi Kajinami 7e7fd3d874 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: I0185a7ae83c778ecc6ae5f466ab8b48acbba42ed
2023-03-16 13:34:55 +09:00
Takashi Kajinami 9568fe2601 Remove TripleO job
... because TripleO is being retired.

Change-Id: Id1e5ae3ab792e02a87eaeeacf5efb4cbe03acd65
2023-03-13 11:20:13 +09:00
Takashi Kajinami b0e46961f9 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ibf90d5d5240672a5035e1fb893f135a8d879ca59
2023-03-02 12:36:49 +09:00
Zuul 16503a022e Merge "apache: Remove deprecated api_port parameter" 2023-01-24 13:23:36 +00:00
Takashi Kajinami cede98893a 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: Ic0d3b20bdf63599160bd8419d6e3b13b73d09cea
2023-01-23 14:40:33 +09:00
Takashi Kajinami cf976fc5dd apache: Remove deprecated api_port parameter
The parameter was deprecated in favor of the port parameter during
the previous cycle.

Change-Id: If9c672972d30ce46251c8d3353de6ff818bbc486
2023-01-23 10:21:35 +09:00
Takashi Kajinami 98373072c8 Switch to Ubuntu Jammy (22.04)
... because Focal no longer supports the recent releases such as Zed.

Change-Id: Ic16245c93a242ac147d63746ed451b4ae97cf5af
2023-01-15 22:30:01 +09:00
OpenStack Release Bot 4b2fd40671 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: Icd335bab3f5767234bfccc4e15136f0d7a795c5c
2022-10-20 11:11:00 +00:00
Takashi Kajinami fee2a7fd73 Prepare Zed RC1
Change-Id: Ib23043ccfbc0b66a0c9a223d93ca7f653aec2a56
2022-10-05 18:30:46 +09:00
Zuul 00f55ebee0 Merge "Enable memcached in acceptance tests" 2022-09-01 09:24:25 +00:00
Takashi Kajinami 4e95f0f1ef Enable memcached in acceptance tests
... because it is required as cache backend.

Change-Id: I05646389f993b5fcdd174faa53e303e445648afa
2022-08-31 00:58:50 +09:00
Takashi Kajinami 5f6e5bc3c3 Fix inconsistent parameter name of wsgi::apache
The placement::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.

This also fixes minor differences mainly about formatting.

Change-Id: Ifaed2952e3dc49ee5cde2587bd5f8a35205465fb
2022-08-28 00:05:00 +09:00
Takashi Kajinami a945887286 apache+mod_wsgi: Allow customizing wsgi process options
This change adds the missing capability to customize wsgi process
options, which is supported by the other modules.

Change-Id: Ia5cff022c1ad4f6402f2e9d4cd039059b176cd93
2022-08-26 17:55:37 +09:00
Takashi Kajinami 497d0a4e45 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: Ie2f8feadd568565308210d73c2a89b2beef43697
2022-08-26 15:50:08 +09:00
Takashi Kajinami 4fb0cae9c4 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: I8f865d33ad289b605c27de58d3accf6717888df8
2022-08-02 23:10:12 +09:00
Zuul 5d4e4e9ff0 Merge "Expose headers option of apache::vhost" 2022-07-30 15:38:56 +00:00
Takashi Kajinami 98a7029afe Revert "CentOS 9: Disable unit tests dependent on puppet-postgresql"
This reverts commit 84315c2352.

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: I56c7338ab7edae60ebd16fe89975dfc304ab78d6
2022-07-24 00:55:41 +09:00
Zuul aa546fc457 Merge "Add acceptance tests for config management resources" 2022-07-15 19:43:39 +00:00
Takashi Kajinami 242a7c53d3 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: I765e631ef6127a98d49059cd47087c70e6490dc5
2022-07-15 11:52:42 +09:00
Takashi Kajinami 070087855a Add acceptance tests for config management resources
Change-Id: I1569d32596571b4276c620d062042a864adba704
2022-07-10 04:29:38 +00:00
Takashi Kajinami 029c455e4c 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: I8500d2de47c4f50920336741db5840bc44faca8b
2022-07-01 10:37:48 +09:00
Zuul 486b37d6f5 Merge "Remove support for CentOS 8 Stream" 2022-06-01 05:44:54 +00:00
Takashi Kajinami a25db3a1a1 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: Ib8a45aa5ab45a54dfc35e67cf06a427da24f6397
2022-06-01 13:57:25 +09:00
Zuul 9481198bba Merge "api: Remove deprecated host/api parameter" 2022-05-18 09:15:43 +00:00
Takashi Kajinami f64cc66b85 Remove deprecated placement::wsgi::apache::ensure_package
... because it was deprecated during Xena cycle[1].

[1] 20a4abee20

Change-Id: I72fa9fbedb446e430d6b54a05c5d6ae491133852
2022-05-17 14:11:08 +09:00
Takashi Kajinami d37eed4ff7 api: Remove deprecated host/api parameter
... because these were deprecated during Victoria cycle[1] and had no
effect since then.

[1] 14a73aff46

Change-Id: I01a966e504af342a26206fd63788ab5de9c832fc
2022-05-17 14:07:17 +09:00
Takashi Kajinami c3d53a6558 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: I2853800fb6f8ba3276f7702b292386058d3343e2
2022-05-06 21:04:00 +09:00