Commit Graph

295 Commits

Author SHA1 Message Date
Takashi Kajinami 8fe204a3f0 Refactor resource dependencies
This refactors resource dependencies to avoid unnecessary dependencies
across services.

Change-Id: I0f0c12f77eb39cb1d1c68fe2b02050ada257aabb
2024-04-08 11:18:39 +09:00
Zuul 9c6139b7d1 Merge "Add .pdkignore to exclude some files from tar ball" 2023-08-11 06:54:43 +00:00
Takashi Kajinami aa4c874805 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: I481d7fadb76f593982c9e56ce8f2a5ec0508c7e8
2023-08-11 01:01:02 +09:00
Takashi Kajinami 926fed1836 replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

This also adds the type enforcement about purge_config which accepts
only boolean values.

Change-Id: I243572f19564a18003c3de66c1248f0f215bae65
2023-08-07 10:12:29 +09:00
Tobias Urdin dea64e7fd3 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I18418bb01da896f0e12aead11c28b24c0e103c62
2023-06-22 21:08:08 +02:00
Zuul 3a05a4aa6b Merge "Bump requirement versions" 2023-05-22 14:47:19 +00:00
Takashi Kajinami c723c33daf Bump requirement versions
... to make these align with what are used in CI.

Change-Id: Idc42e656c51500c61f1cf03ddea60f8d6d3300db
2023-05-22 12:34:50 +09:00
Takashi Kajinami dac965af4f Remove support for Puppet 6
... because Puppet 6 reached its EOL in February 2023.

Change-Id: I896829937e8f6f5b5cdf0c1a3070f1c100350be5
2023-05-22 12:33:30 +09:00
Zuul 0e05795cda Merge "Avoid hard-coding OS user in each manifests" 2023-04-11 15:43:01 +00:00
Takashi Kajinami 7dc326a79e Remove unnecessary fact overrides
Change-Id: Id26d395d17496fb011cc1460f3c6a88018a4f6fb
2023-03-30 14:50:06 +09:00
Takashi Kajinami 4db94d41bd Avoid hard-coding OS user in each manifests
... but define it ::params as is done for group.

Change-Id: If343a8d89c7675a969e0a16ad9903cd4051ce750
2023-03-30 14:48:18 +09:00
Takashi Kajinami 61b4cf5e96 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I54ecd455a380fcba65132bfc9723b6a1b6c7591e
2023-03-03 12:54:29 +09:00
Takashi Kajinami 612c802c76 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: Idcd4b7afac385757702577f7eb5e73e7a460fe86
2023-01-23 14:57:49 +09:00
ZhongShengping 98cef7d146 Add Puppet Litmus
Change-Id: I8013f180b552fffb9c966c7329a3b6c3435fbc5b
Depends-On: https://review.opendev.org/#/c/740601/
2022-11-07 10:55:50 +08:00
Takashi Kajinami d28440c0fc 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: I2cb4f0c98341c16dac9d6a502976f5708547bde9
2022-09-09 13:36:17 +09:00
Takashi Kajinami 5740a31a9e Remove workaround to unpin modulesync
... because the pinning in puppet-modulesync-configs has been removed.

Depends-on: https://review.opendev.org/845529
Change-Id: Ic9f848e8ae007beb7e6551a8f831bb0215d6c4e0
2022-08-16 05:38:58 +00:00
Takashi Kajinami 191b2ee267 Unpin modulesync
... to use the recent modulesync which is compatible with Ruby 3.0.

This also fixes the failing unit tests, which were broken by recent
change in puppet-postgresql.

Depends-on: https://review.opendev.org/853222
Change-Id: Idca10381dc8204e2c35491b92d0f60b3566d4375
2022-08-16 05:38:12 +00:00
Zuul 175ca29fab Merge "Fix dependencies related to openstacklib::policy" 2022-05-23 15:59:27 +00:00
Takashi Kajinami 51dee31bfa Fix dependencies related to openstacklib::policy
Since [1] was merged, not only openstacklib::poliy::base but also
openstacklib::policy::default is included to manage the policy file.
This change ensure openstacklib::policy::default is executed after
the packages are installed.

[1] 740d1bb822

Change-Id: Ia100cbf628590218dfa4afa051b0fa8acd024a5a
2022-05-18 22:18:58 +09:00
Takashi Kajinami 23acf5956d Simplify definition to ensure keystone resource creation
Use the whole resource type instead of its individual resources, to
rely on interface instead of implementation of the dependent module.

Change-Id: I00b501ff5a9e0411445c253febb7f60f31f8babf
2022-05-18 21:56:28 +09:00
Takashi Kajinami 333acdd956 Allow customizing project/system roles
Change-Id: Id3b65ff4dcc973b74298ea91f9da7cbafa0f5da7
2022-05-18 21:56:19 +09:00
Takashi Kajinami 1309ff7e3c Update cookiecutter template
* Update dependency versions
* Support CentOS9/RHEL9
* Use anchor instead of package resource
* Fix wrongly named spec file

Change-Id: I85f0f6922b45ecf5a3cfad8c814e6f9762b25c51
2022-03-14 10:57:00 +09:00
Zuul 9cf028b301 Merge "Use consistent service description" 2022-02-20 10:29:34 +00:00
Zuul 2571fb6dc0 Merge "Stop testing details of keystone::resource::service_identity" 2022-02-20 10:22:03 +00:00
Zuul 81162b15b3 Merge "Add support for MultiStrOpt" 2022-02-07 15:42:45 +00:00
Takashi Kajinami a7b1d30149 Add support for MultiStrOpt
This replaces the provider implementation of aodh_config type so that
MultiStrOpt, which is used by several options like
 - oslo_messaging_notifications/driver
 - oslo_policy/policy_dirs
are handled correctly.

Change-Id: I3cae6998ec9a2157f507650859e030c576a3cd8c
2022-02-07 00:58:13 +09:00
Takashi Kajinami 740d1bb822 Allow purging policy files
This change introduces the new purge_config parameter to the policy
class so that any policy rules not managed by puppet manifests can be
cleared.

Change-Id: I1c0739759c43996def7777c4f9aec667d45c2afc
Co-Authored-By: Martin Schuppert <mschuppert@redhat.com>
Depends-On: https://review.opendev.org/802305
2022-02-07 00:53:24 +09:00
Takashi Kajinami 6a070a817f Use consistent service description
Change-Id: I0a0271139563e2c75cc54fa8957a2a51f2dd0606
2022-02-02 16:12:06 +00:00
Takashi Kajinami 28e1de1ec9 Stop testing details of keystone::resource::service_identity
Change-Id: I2ac78be827c32c5c2cb2e2d12d1148b7a80ed8b1
2022-02-03 01:11:32 +09:00
Zuul 1d954522d4 Merge "Skip dependency on keystone endpoint if endpoint is not configured" 2022-02-02 15:56:43 +00:00
Zuul df1864a560 Merge "Add support for [keystone_authtoken] system_scope" 2022-02-02 15:56:41 +00:00
Zuul 4054d2a1f3 Merge "Stop testing details of keystone::resource::authtoken" 2022-02-02 15:56:40 +00:00
Takashi Kajinami dda8576346 Add support for [keystone_authtoken] system_scope
Change-Id: I07bf595085fda652f059bfc9dd5d9330d5ed3278
2022-02-02 14:28:34 +00:00
Takashi Kajinami 2dc431dd0d Stop testing details of keystone::resource::authtoken
Change-Id: I40e362dec19afa61432149d9492404241c1d183a
2022-02-02 23:27:53 +09:00
Takashi Kajinami e6891d5f9b Skip dependency on keystone endpoint if endpoint is not configured
Change-Id: I198635c5d867d80c40cc43a0ba783aa559d28e51
2022-02-02 23:24:19 +09:00
Takashi Kajinami 609879da59 Bump puppetlabs-inifile
Depends-on: https://review.opendev.org/816117
Change-Id: I81548709e0b05115720caee45e5537b8275d9d95
2022-02-02 14:03:17 +00:00
Takashi Kajinami c74732c3b8 Pin bundler to 2.2.11
... as we did for p-o-i[1] and spec_helper[2].

[1] 4d2d86e0df434ee25a508aceb1ea209a0c64f80b
[2] a75cf9b6b18134cd6b1285740e2941bb228e053b

Change-Id: I31913176272c1da8260980fcb03deeb0f6a154ab
2022-02-02 22:45:09 +09:00
ZhongShengping 7bbe21dfba Add information technology in the setup.cfg
Change-Id: I9325f325eb8c5bbe5701dc6f1ef6f53147a037f4
2021-10-01 06:54:50 +08:00
ZhongShengping 97d7b8901e Add license information in the setup.cfg
Change-Id: I82764b1e49940172154968a897c743fbdc2f6664
2021-09-30 16:48:14 +08:00
ZhongShengping cb40504be9 Delete useless code for setup.py
Change-Id: I78a798361d6a4e041b7acc126b31f2c249275462
2021-09-30 13:39:16 +08:00
Zuul e14aeb6e3e Merge "Stop configuring install_command in tox." 2021-09-29 12:09:40 +00:00
Zuul abb1f50fdc Merge "Fix pbr>=2.0.0 for setup.py" 2021-09-29 09:24:12 +00:00
Takashi Kajinami 6013b3faa5 Stop configuring install_command in tox.
It turns out that this is the the default value provided by tox:

https://tox.readthedocs.io/en/latest/config.html#conf-install_command

So we can remove the line and simply use the default value.

Change-Id: Iee04a22940f5ee14f43947f562cbca9070d8defb
Co-Authored-By: tushargite96 <tushargite96@gmail.com>
2021-09-29 18:14:06 +09:00
ZhongShengping 9817fc150e Fix pbr>=2.0.0 for setup.py
Change-Id: I1add6cd8631b91faa4a2719205e472a54c7fcc74
2021-09-29 16:37:10 +08:00
ZhongShengping 008dce4347 Update openstackdocstheme to the latest version
Change-Id: I0d308921b86f7cf3f8ee197fcf25cf0e794667bd
2021-09-29 16:06:51 +08:00
ZhongShengping db3c46ff6d Update reno to the latest version
Change-Id: I33c1791011358ebee8bcb9164238a8d6b688ecb3
2021-09-28 17:14:35 +08:00
ZhongShengping 36de0bf668 metadata.json: debian 11
Change-Id: I550eabc958d19f8f53bd963d19bbe2758132dc5d
2021-09-28 09:20:36 +08:00
ZhongShengping 306d67b047 Fix stdlib version in metadata
puppetlabs-stdlib is now using the 8.0.0 version, so we should fix the
stdlib version in metadata.

Change-Id: I802f7e5ed1c631c6abfe225532ad3a5aefe8e1ea
2021-09-23 19:44:23 +08:00
ZhongShengping 5d8522712d Add watch_log_file option
Add support for Using logging handler designed to watch file system.

Change-Id: I427bbcd87e671be8f647ccbc4ebd00eaff8e5ae3
Closes-Bug: #1943212
2021-09-14 16:04:53 +08:00
Zuul 8a12fd99de Merge "Drop Fedora support" 2021-08-18 11:51:34 +00:00