Commit Graph

180 Commits

Author SHA1 Message Date
Zuul cf202a64f5 Merge "Stop hard-coding config file for db sync" 2024-03-08 13:37:14 +00:00
Takashi Kajinami ea6c158a75 Stop hard-coding config file for db sync
The cloudkitty-storage-init command by default loads
/etc/cloudkitty/cloudkitty.conf. Removing the override allows us to use
additional paths such as cloudkitty.conf.d in the future.

Change-Id: I3109005c76a1ffd8f23b3aebd92861a0a4fb419a
2024-03-05 12:27:20 +09:00
Takashi Kajinami f624709cfc healthcheck: Expose ignore_proxied_requests parameter
Depends-on: https://review.opendev.org/909807
Change-Id: I8c754cd823a501924567c68457be6e16b884ce85
2024-02-26 01:29:42 +09:00
Takashi Kajinami 4bf6dd0f4b healthcheck: Expose allowed_source_ranges
... which was added to puppet-oslo recently.

Depends-on: https://review.opendev.org/905557
Change-Id: Ia9b0534f4e4a6b0d2325ccef318f35ef3789eb08
2024-01-17 02:52:55 +09:00
Zuul eee7ff04b4 Merge "RabbitMQ: Add support for quorum queue options" 2023-09-15 15:12:06 +00:00
Takashi Kajinami e17c077aa3 RabbitMQ: Add support for quorum queue options
Depends-on: https://review.opendev.org/894866
Change-Id: Ia11d14110a0a49056b4e582c20d360cf2953c28f
2023-09-15 08:42:36 +09:00
Zuul 6181d2856c Merge "Remove unused dashboard package name" 2023-09-11 16:04:51 +00:00
Takashi Kajinami cb6202731f Remove unused dashboard package name
The usage has been removed by [1].

[1] 71ad6471e9

Change-Id: I1e7f9bef192c8f291817244b7cd9d8e81e836d6d
2023-09-11 12:40:46 +09:00
Takashi Kajinami 48a9ace870 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: I1355983024146ddc22128f6affcd67b2036b4848
2023-09-11 12:26:38 +09:00
Takashi Kajinami 4ae2f42a7a fetcher_keystone: Fix ignored auth_type
The class parameter has been ignored and the given value was not put
in the config file properly. This fixes the problem.

Change-Id: I764a98553b766e64fad71d418f4158a47e413282
2023-08-25 15:02:46 +09:00
Takashi Kajinami 9869a67a9d Clean up deprecated parameters
This removes a few parameters deprecated in favor of the new
cloudkitty::fetcher::keystone class.

[1] 4e6806f54f

Change-Id: I0e363d7269bfea31464d8d74b07828bebd792c3a
2023-07-28 16:39:59 +09:00
Zuul 48b65769ae Merge "Ensure purge_config takes a boolean value" 2023-07-18 00:18:15 +00:00
Takashi Kajinami 2e76bee998 Ensure purge_config takes a boolean value
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.

Change-Id: Ia5ecf568545d11a10cd35f064af85e43136ce838
2023-07-18 00:50:29 +09:00
Zuul 4e8261a4f0 Merge "authtoken: Ensure correct type for password" 2023-07-16 23:35:44 +00:00
Takashi Kajinami 1e4ff9bb99 Replace remaining validate_legacy
This was overlooked during the previous attempt.

Change-Id: I76c64575f3236fc041fa884b2025a319d8ed65dc
2023-07-13 22:02:48 +09:00
Takashi Kajinami ce4bf1e2f2 authtoken: Ensure correct type for password
... and make parameter order consistent in parameter descriptions and
parameter definitions.

Change-Id: I1eba204a1928f954aae116b97fe95e7dfce46b34
2023-07-12 21:58:27 +09:00
Zuul 9174927541 Merge "Remove deprecated cloudkitty::processor::max_workers" 2023-06-26 14:51:26 +00:00
Takashi Kajinami 6c21dd1dc2 Remove deprecated cloudkitty::processor::max_workers
Change-Id: I412a366755a4aa7933be7feeb040209efc735b44
2023-06-26 04:17:52 +00:00
Tobias Urdin 2abda4f574 Add per module policy service refresh
Updating the policies for this project should only
refresh the services that reads it.

Change-Id: I7eda28c684af2def0d4acacfa5ba453ef02b42a3
2023-06-26 00:03:50 +02:00
Takashi Kajinami 86c16519e2 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: I20a381329797402627cb14a6104014fae7ac839d
2023-06-16 02:37:47 +09:00
Takashi Kajinami 7fdd4f56cf replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: I562568fe0e68b98bd80e4b7e1d20644a54d086df
2023-06-16 02:35:46 +09:00
Thomas Goirand a98e603e5d Fix cloudkitty dashboard package name
Both Debian and Ubuntu are using python3-cloudkitty-dashboard,
not cloudkitty-dashboard, as package name. Let's fix this
(so the Debian specific patch can be removed form pacakging).

Change-Id: I990398d27da898a60fc5c5991e6c2c3c5aa36672
2023-04-12 10:24:54 +02:00
Takashi Kajinami 70d66f8f55 [orchestrator] coordination_url should be hidden
The coordination_url option can sometimes contain secrets.

For example when redis coordination backend is used and authentication
is enabled in redis, the plain redis password is put as an URL element.

[orchestrator]
coordination_url=redis://:password@127.0.0.1:6379

Closes-Bug: #2012246
Change-Id: Iba1e7715b290ee4c104f11221e250b23936b12dc
2023-03-20 21:11:32 +09:00
Takashi Kajinami 25e2da3b42 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: I8986bcb5fdd5d1c28aa0e706267f689b894f7167
2023-03-01 16:17:18 +09:00
Takashi Kajinami b5af91b7ff 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: Ia4e917d879a175c1919131bfa0bee9d679fe1a76
2023-01-23 14:28:45 +09:00
Takashi Kajinami d89093fa76 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: Iee4cf4b3e20d16624b89f6b004cc857ed5288510
2022-08-26 17:03:11 +09:00
Zuul cdcc255735 Merge "Add support for Elasticsearch storage backend" 2022-08-18 22:51:33 +00:00
Takashi Kajinami d3f0a4852a Remove remaining hard-coded OS user/group
This replaces one remaining hard-coded user which was left by
the previous attempt[1] to remove individual hard-codes.

[1] 4828d650b3

Change-Id: Iba7e9af291621deeca7651ef9f67ddce453180af
2022-08-17 14:20:13 +09:00
Takashi Kajinami 2072b01aac Add support for Elasticsearch storage backend
Change-Id: I9b3b74f3c32a43ae982f0c429c95819dc387bf80
2022-08-17 13:59:17 +09:00
Zuul 021f77ca19 Merge "Adapt to new type validation in puppetlabs-apache" 2022-08-08 17:51:35 +00:00
Takashi Kajinami 355805aba1 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: Idd4918618831ffab98db91fa90ae493775373bc9
2022-08-02 07:48:35 +00:00
Zuul 92e60c353a Merge "Expose headers option of apache::vhost" 2022-07-30 14:13:04 +00:00
Takashi Kajinami d4db053e91 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: I4ff7ea57f9c1b29b2209506969497b773cef02ec
2022-06-30 02:02:31 +00:00
Zuul 24e53fe612 Merge "Remove deprecated tenant_fetcher_backend" 2022-06-28 13:46:14 +00:00
Takashi Kajinami 357eaf6147 Remove deprecated tenant_fetcher_backend
... because it was deprecated during Victoria cycle[1].

[1] d58a0a25ed

Change-Id: I29bbc0bb81d1fbdfd17e82667cee34d786cd1828
2022-06-26 17:44:07 +09:00
Takashi Kajinami 71ad6471e9 Remove deprecated cloudkitty::ui
This class was deprecated during Yoga cycle[1].

[1] 0f89c9ab8f

Change-Id: I703934b1b5dcecb01cef100a512a4c30fbf63522
2022-06-22 00:03:37 +09:00
Rajesh Tailor 17f8ee1b31 Fix typos in parameter descriptions
Change-Id: I865f8778b4efbb84f295ad22b9f9a16828774e44
2022-06-20 16:04:06 +05:30
Takashi Kajinami 0ddc83eb3e 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: I705dabab19974c2d9323e49051c8952e6d537820
2022-05-06 21:09:45 +09:00
Takashi Kajinami 0b08499e20 Globally support system scope credentials
After spending huge effort to understand the exact requirements to
enforce SRBAC, we learned it's very difficult to find the required
scope in each credential. This requires understanding implementation of
client-side as well as server-side, and requirement might be different
according to the deployment architecture or features used.

Instead of implementing support based on the actual implementation,
this introduces support for system scope credentials to all places
where keystone user credential is defined, and make all credential
configurations consistent.

Change-Id: I50c029b07a30c201b4d9bd4821265d4bf465ba9f
2022-03-04 02:11:11 +09:00
Zuul 476a452ac7 Merge "Avoid hard-coding OS user/group in each manifest" 2022-02-22 15:19:03 +00:00
Takashi Kajinami 4828d650b3 Avoid hard-coding OS user/group in each manifest
and replace hard-codes by definition in params.pp .

Change-Id: If76bc4202133742fe47140238d065a080d5a4a66
2022-02-20 19:51:59 +09:00
Zuul 138b784ca9 Merge "Remove deprecated database_min_pool_size" 2022-02-18 08:46:46 +00:00
Zuul cd4cdd302a Merge "Remove deprecated amqp_allow_insecure_clients" 2022-02-18 08:41:45 +00:00
Zuul af68446b62 Merge "Do not define service resource when service management is disabled" 2022-02-15 09:36:59 +00:00
Zuul 3a7d92be8e Merge "Deprecate cloudkitty::ui" 2022-02-14 18:14:35 +00:00
Takashi Kajinami bd9098ec87 Support more [orchestrator] parameters
This change introduces a separate new class to manage [orchestrator]
parameters. The max_workers parameter in the processor class is
deprecated in favor of that new class.

Change-Id: Icd30923802064aec6a3ae9716b2ae30665998aae
2022-02-13 21:20:15 +09:00
Takashi Kajinami 0f89c9ab8f Deprecate cloudkitty::ui
The cloudkitty::ui class has been added to install the dashboard plugin
package. However the current implementation is incomplete and does not
define the required dependencies to install the plugin package before
starting the horizon service. Furthermore, the same can be achieved by
the horizon::dashboard resource type and that is considered to be more
"native" way.

This change deprecates the ui class so that we can get rid of it in
a future release.

Change-Id: I8eab557c13b3a6455a38b24732c692c5e823421a
2022-02-13 13:00:04 +09:00
Takashi Kajinami e9f6080596 Do not define service resource when service management is disabled
Change-Id: Ib43b45c7232ef5ccbb91949a7b6d1a1aa3da1d28
2022-02-10 13:44:38 +09:00
Takashi Kajinami 0cd3a4b182 Remove deprecated database_min_pool_size
... because it was deprecated during Ussuri cycle.

Change-Id: Ie1826e0c5fc4112bf7adb4efa6aef046a648ea8a
2022-02-08 22:49:56 +09:00
Takashi Kajinami 96a2a0adff Remove deprecated amqp_allow_insecure_clients
... because it was deprecated during Wallaby cycle.

Change-Id: I6c8b52e3d2d94c11786debb8ea0ccb9adce1b407
2022-02-08 22:20:00 +09:00