Commit Graph

342 Commits

Author SHA1 Message Date
Takashi Kajinami db8e683898 Get rid of script workaround for single command calls
... to simplify the command called by the exec resources.

Change-Id: Ib7942c0795532bfe4448225fe64767dcebf1a537
2024-01-09 21:24:32 +09:00
Zuul 67888b7f3c Merge "Use common resource to manage keystone resources" 2024-01-09 12:10:31 +00:00
Takashi Kajinami 49c02173aa Refactor ceph::key
This change refactors the ceph::key defined resource type so that
unnecessary spaces are removed from commands.

Change-Id: I2cdd9b3c9bac086a57cda67430eba0f0826744b3
2024-01-03 17:23:06 +09:00
Takashi Kajinami 21555c537f Use common resource to manage keystone resources
The puppet-keystone module provides the common defined resource type to
manage all resources needed to integrate a service to keystone. This
replaces the existing bare implementation by the common resource.

Change-Id: Ibec4407b2816869d62478de0ea5a780a70c08ffb
2024-01-02 21:22:23 +09:00
Takashi Kajinami e73693447c 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: I4b91658648c8cef2176264e995366e1ff73ce00b
2023-10-11 12:16:33 +09:00
Zuul 8a867a1fd5 Merge "Remove support for CentOS 8 (non-stream)" 2023-09-11 02:30:14 +00:00
Zuul 6af132eabf Merge "rgw: Use native class to enable mod-proxy_fcgi" 2023-09-08 18:01:43 +00:00
Takashi Kajinami 4380fa4f14 rgw: Use native class to enable mod-proxy_fcgi
puppetlabs-apache provides the native class since 1.9.0[1].

[1] 71cb7302f2

Change-Id: I73474920b854034c2475df3d583f8fb8d8a5d538
2023-09-08 09:40:10 +09:00
Takashi Kajinami a3283bf79f Remove support for CentOS 8 (non-stream)
CentOS 8 reached its EOL a while ago. Because we already removed
support for CentOS 7, we no longer support any non-stream CentOS
versions.

This deprecates the stream parameter and makes the stream repository
used always.

Change-Id: Iba3c8aea2f6dd8b9cca17ed1468a43d6c7d39b53
2023-09-06 17:20:22 +00:00
Takashi Kajinami 5ebde1e6b1 Remove CentOS/RHEL 7 support
The train release was the last release with CentOS 7 support, but it is
now being transitioned to EOL.

This change removes support for CentOS 7 and RHEL 7 because we no
longer support any OpenStack release supporting these old operating
systems.

Because fastcgi package was available for only CentOS/RHEL 7, its
support is also removed by this change.

This also removes the wrong warning message for rgw deployment with
mod_proxy_fcgi. This pattern is still valid in supported operating
systems and only the one with mod_fastcgi should be deprecated or
removed.

Change-Id: I1238b23f1aee57641788a21556123bec94a1ed1b
2023-09-07 02:19:44 +09:00
Zuul 37906002e6 Merge "Add support for rgw_keystone_accepted_admin_roles" 2023-08-08 04:52:42 +00:00
Takashi Kajinami 32a78b5aef Add support for rgw_keystone_accepted_admin_roles
This introduces support for the rgw_keystone_accepted_admin_roles
option of RADOS Gateway Keystone integration.

Change-Id: I74778f12110683abf5c38e98bb72a0d89e8db2c6
2023-08-07 16:24:08 +09:00
Takashi Kajinami fcf7a4be4c Do not use params to define parameter defaults of defined types
... because that causes undefined variables error in case the params
class is not included in advance.

Change-Id: Ibc74d5433645e06eb9f1d0d736bcc41c9c5f3d4e
2023-08-07 11:42:56 +09:00
Zuul c593d086cd Merge "rgw profile: Support keystone integration" 2023-07-31 15:38:07 +00:00
Zuul 8f1d337539 Merge "Remove `Member` role" 2023-07-31 15:28:45 +00:00
Takashi Kajinami e970858120 rgw profile: Support keystone integration
This introduces a few new parameters to the profile class so that users
can enable keystone integration of RADOS Gateway.

This allows us to fix some ignored profile parameters, and also remove
the references from the non-profile manifest to the profile parameters.

The rgw_keystone_version parameter is removed by this change.
The actual parameter was deprecated[1] and was removed[2] from the rgw
class very long ago.

[1] 85b9d61c40
[2] 0377da4e08

Change-Id: I4026d3c2d40ae9b7ed9c3a60529011854b878f89
2023-07-31 10:54:07 +09:00
Takashi Kajinami b3a8ac1f0a Remove `Member` role
In OpenStack deployment we more commonly use `member` than `Member`.
Also the `member` role is now implied by the `admin` role.

This removes the Member role to get rid of the unused role and follow
the standard roles.

Change-Id: I64175a3d485358af9a012060826dcedbe24b1042
2023-07-30 01:52:39 +09:00
Zuul f4f2d75d62 Merge "Fix ignored ceph::rgw::rgw_data" 2023-07-28 05:23:13 +00:00
Zuul 2c20097774 Merge "Stop creating /var/lib/ceph/radosgw" 2023-07-28 05:23:12 +00:00
Zuul d716b57bfa Merge "Remove deprecated ceph::set_osd_params" 2023-07-28 04:55:59 +00:00
Zuul 68ece8d8f4 Merge "Use https for CentOS Stream 9 mirror" 2023-07-27 10:52:40 +00:00
Zuul f5bd05d31e Merge "Stop creating /var/lib/ceph/mgr" 2023-07-27 10:47:56 +00:00
Zuul e04480e1f2 Merge "Fix unknown variable errors caused by ceph::profile::fsid" 2023-07-27 08:46:40 +00:00
Takashi Kajinami 90cc5ee1ac Use https for CentOS Stream 9 mirror
The mirror server for CentOS Stream 9 supports https and access using
http is redirected to https.

Change-Id: I1ada67c7d960b3aed121296e367eaf2a3264ecd4
2023-07-25 06:55:12 +09:00
Zuul ee90ea8764 Merge "Ensure public_addr option is purged" 2023-07-24 15:20:32 +00:00
Zuul 81e34af8bb Merge "repo: Fix undefined $el" 2023-07-24 15:20:30 +00:00
Takashi Kajinami 51773ebf60 Fix ignored ceph::rgw::rgw_data
This parameter was used for directory creation but has never been
added to the config file properly. This ensures the rgw_data option is
set so that the specified directory is used to store data.

Change-Id: I2cf5510e21de2879e1f0aa458a98e70b85e4ac0f
2023-07-24 10:21:27 +09:00
Takashi Kajinami 3b2e75378d Stop creating /var/lib/ceph/radosgw
The rpm spec was updated in v9.0.2 (Infernalis release)[1] and
the directory is created by the package.

Because currently we support only Luminous (which is the oldest version
used with stable/train) we no longer need to maintain the workaround
for very old package versions.

[1] bf93128f66

Change-Id: Idd085c566cdc06a117227e67a728af7e5c2abd5e
2023-07-24 01:59:48 +09:00
Takashi Kajinami 137e568257 Stop creating /var/lib/ceph/mgr
This directory is created by the ceph-mgr package.

Change-Id: Ib857cecf258c350ae74152eb45f301a1c41f13c3
2023-07-24 01:54:56 +09:00
Takashi Kajinami e82583f39e Remove deprecated ceph::set_osd_params
It was added as a deprecated parameter a long ago.

Change-Id: I29ef2981c69e24429014026a051fe8aff266efc7
2023-07-24 01:20:54 +09:00
Takashi Kajinami 1857b60b60 Ensure public_addr option is purged
... instead of leaving the option.

Change-Id: I7e4e2403570cff622d81804c13edf03548a0de18
2023-07-23 02:32:03 +09:00
Takashi Kajinami df03ad0501 Fix unknown variable errors caused by ceph::profile::fsid
Thsi fixes the unknown variable errors caused by usage of
ceph::profile::fsid. The definition in ceph::profile should NOT be used
by generic implementation outside of profile modules.

Change-Id: I3bdb153f917838e309288b80a18af4a494d13a4d
2023-07-22 17:15:33 +00:00
Takashi Kajinami 843fa12939 Validate authentication_type
Currently we expect only 'cephx' or 'none' as authentication_type. This
enforces that limitation using parameter types..

Change-Id: I9d783e500f94b3f474d657ab10b1594ab6e6e65b
2023-07-22 23:42:17 +09:00
Takashi Kajinami 83c19702c2 Validate ensure parameter using the typed parameters
... instead of validating the value as part of manifest logics.

Change-Id: Id46cf10ca4321d2f757e5a1171c1e2900ccbc2e2
2023-07-22 23:42:17 +09:00
Takashi Kajinami 0d77c3353b repo: Fix undefined $el
This fixes the undefined $el variable when epel is enabled but sig
repository is used.

Change-Id: Ib7f0954413d2a5727e5eaf457da544c48a14ff6b
2023-07-22 23:40:21 +09:00
Takashi Kajinami 8bc67e20e7 Partially fix undefined variables
This is the first step to get rid of the errors found in unit tests
with Puppet 8, and fixes some undefined variables found in ceph::osd.
This also fixes a few redundant spaces appearing in commands.

Change-Id: I52b26701e77af44e8fb80106a6d1b6dbd34f133d
2023-07-20 15:08:49 +09:00
Zuul ac74f1c703 Merge "yumrepo: Replace old enabled parameter" 2023-03-11 05:18:26 +00:00
Takashi Kajinami 7d690226bc yumrepo: Replace old enabled parameter
This module now supports only Puppet 5 or newer versions thus we no
longer need compatibility with Puppet 3.x (or even older).

Change-Id: Icfa19e80c33a87df76a56f23bba4b93709cdb7a7
2023-03-10 18:12:19 +09:00
Zuul ee4bfa06b1 Merge "Add support for ms_bind_ipv4" 2023-03-10 08:48:37 +00:00
Takashi Kajinami 5a9340437d Add support for ms_bind_ipv4
so that we can make ceph use IPv6 only.

Change-Id: I0920053e4615212caaf89d34834c1d1db7ecbad6
2023-03-08 00:23:02 +09:00
Takashi Kajinami 1f80fff1eb Fix test coverage for old OS/puppet versions
This change fixes how old OS versions and puppet versions are tested
and now we use only the combinations supported in the past, instead of
testing the all combinations which contain some invalid ones like
Puppet 5 + CentOS Stream 9.

Depends-on: https://review.opendev.org/876554
Change-Id: Ie22c586c6f0e8cfe82a46bd62d3953af1918e777
2023-03-06 18:28:35 +09:00
Takashi Kajinami 8b88ce61a5 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

This also disables puppet 5 unit test job because the job is broken
with structured facts.

Change-Id: Id11ccaf89a44d093de29ba3c15165153eea4be56
2023-03-06 16:38:13 +09:00
Zuul 8901fe0f58 Merge "Add back unit tests with Puppet 5 + CentOS 8 Stream" 2022-11-21 11:52:01 +00:00
Takashi Kajinami 4db054a27a Add back unit tests with Puppet 5 + CentOS 8 Stream
This module still supports Puppet 5. This change adds back unit test
coverage with Puppet 5.

Depends-on: https://review.opendev.org/854061
Change-Id: I757d5c2f1c2af1c548d8ce6fba324c6f42826910
2022-08-28 13:33:27 +09:00
Takashi Kajinami 75c5a7c3f4 rgw: Support Barbican integration settings
Change-Id: I8fef857c55610f33b33a3423a8ec8cebbdde078b
2022-08-23 19:03:04 +09:00
Takashi Kajinami b0b0727015 Do not override supported OS
The puppet-ceph modules follows the independent release modeal and
its supported operating systems are not same as the ones for the other
OpenStack modules following OpenStack's release cycle.

This change removes override of operating systems being tested in unit
tests so that we test all operating systems supported by this module.

Change-Id: Icb910ed73999eded6c73905c4ae2f39404a8bfdd
2022-08-22 10:48:32 +09:00
Takashi Kajinami 1800c1b530 rgw: Add support for rgw_enable_apis
... so that users can enable only specific APIs in Ceph object gateway.

Change-Id: I80184a403322e0db6706603aeadb2257b2dd1a35
2022-08-22 10:48:32 +09:00
Takashi Kajinami dbee5bacf3 rgw: support more Swift-related options
This change improves the support coverage of radosgw options, which are
related to Swift API.

Change-Id: I1d544ebcbd77b44c1772d842e021a07e243997d6
2022-08-22 10:48:32 +09:00
Takashi Kajinami a41c255ab0 rgw: Add suport for the beast frontend library
The beast frontend library has been supported since Mimic and will
replace the civetweb library which was deprecated in Pacific.

This also fixes the rgw_frontneds parameter so that the reasonable
default value is selected according to the frontend type selected.

Change-Id: I2faac0151165aa296ac2df3a0b9a1255654947ef
2022-08-22 10:48:27 +09:00
Takashi Kajinami 152b6f6d27 Remove support for upstart
... because this module no longer supports Ubuntu 14.04 or CentOS 6.

This also removes the unit tests with Ubuntu 14.04.

Change-Id: Ib2bf73ba379b61f96c5faf3712c15aa39c0a301e
2022-08-22 02:37:18 +09:00