Commit Graph

355 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
Zuul c9e7edcbed Merge "Ensure appropriate value type for exec timeout" 2024-01-09 05:41:07 +00:00
Zuul 3f35034a3d Merge "Refactor ceph::key" 2024-01-09 05:41:06 +00:00
Takashi Kajinami c23e50763a Ensure appropriate value type for exec timeout
The exec timeout should be a float value. This adds parameter types
so that only the expected value type is accepted.

Change-Id: I2ae7439599b056b56f3bb634cabcc2813700691a
2024-01-03 23:14:10 +09: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 35f0f3630a ceph::osd: Replace redundant handling of cluster default
Change-Id: I865db9f5975fb32a567f5deb016f75cc7c10c8b1
2024-01-03 17:15:56 +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 2bbb88eeee Remove deprecated rgw_service
... which was deprecated in 5.0.0 [1].

[1] f5c1cf3ad5

Related-Bug: #2029009
Change-Id: I1d75dce1f4a74c19210f9e5de673d76bdfecd1e5
2024-01-02 17:55:01 +09:00
Zuul f2b3516b7f Merge "RGW: Add warning about civetweb and fastcgi" 2023-09-11 03:38:23 +00: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 6bfff36f36 RGW: Add warning about civetweb and fastcgi
These frontneds have been removed in quincy release[1].

[1] 1627d6c76a

Change-Id: Ib6d2055beee21e3dbc56a8f577437ebc7ca986bd
2023-09-07 02:23:15 +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
Zuul 76de1ad356 Merge "Do not use params to define parameter defaults of defined types" 2023-08-07 16:26:31 +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
Takashi Kajinami b72c1ec57f Deprecate support for mod_fastcgi
mod_fastcgi package is not provided for recent operating system
versions. This adds the warning messages to make users aware of that
fact.

The parameter will be removed once we remove the remaining support for
CentOS 7.

Change-Id: I683f68457f568712afb25e7c208e4fc3e737aa03
2023-08-07 11:38:49 +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
Zuul 2636b72209 Merge "Fix ineffective rgw_service parameter" 2023-07-31 15:19:21 +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
Takashi Kajinami f5c1cf3ad5 Fix ineffective rgw_service parameter
... and introduces a few new parameters to customize keystone service,
so that we can replace it by the generic interfaces.

Closes-Bug: #2029009
Change-Id: Ia91560a0948257c7a7801aaca9f43bfde2a573fb
2023-07-30 01:52:16 +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 aa95eefdd2 Merge "Ensure absolute path for file creation" 2023-07-27 17:16:28 +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 515b3de05d Merge "Validate input of ceph::conf" 2023-07-27 10:39:55 +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 f0486bf8fc Validate input of ceph::conf
This introduces the basic validation of ceph::conf class parameters.

Change-Id: Icd3e7d75698d380c663c58b5f360c73911497f02
2023-07-23 02:33:51 +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 e746c9e412 Ensure absolute path for file creation
There are a few parameters used as a file path when creating files.
These should be absolute path, otherwise file resources fail.

This adds validation at parameter layer to avoid exposing internal
errors.

Change-Id: I348838c5ca736056dac00c2a0b1ab5063d4d9289
2023-07-22 17:15:40 +00: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 50f777cbff Fix undefined variables caused by exec_timeout
This fixes the following error found in Puppet 8 unit tests.

Evaluation Error: Error while evaluating a Resource Statement,
Evaluation Error: Unknown variable: 'ceph::params::exec_timeout'.

Change-Id: I0030baf97f831384d5dad46dbaeb1ee5169cfe21
2023-07-22 23:42:17 +09:00
Takashi Kajinami c55e22b8a3 Ensure valid value for store_type
The store_type parameter accepts only one of filestore or bluestore.
This ensures the given value is supported.

Note that filestore will be no longer supported by the next major
release(R), but is kept now because we still have to support old
releases used with stable branches.

Change-Id: I2be3b97677afd0baac189ddc8b880b6166610fa4
2023-07-22 23:42:17 +09: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