The gnocchi-upgrade command by default loads /etc/gnocchi/gnocchi.conf.
Removing the override allows us to use additional paths such as
gnocchi.conf.d in the future.
Change-Id: Ibe0c1138eebeb17fb6d06a7e648eab563f47fe1f
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.
Change-Id: Ib89091baaf9aba0809c2e9405389545168b755ec
The oslo.policy library has implementations to detect change in policy
rules and reload the new rules without service restart.
Change-Id: I990a24499bba2ad06aac20e5786c4acca4a2392e
This replaces the existing logic in the gnocchi::db class by the common
logic in oslo::db, to use the single logic to manage backend packages.
Depends-on: https://review.opendev.org/889374
Change-Id: Icd916df0b3463128df5b2ed3b49c2cdbee871504
The package was merged into the common package a long ago[1], and we
no longer need to install it explicitly.
[1] af210a84ac
Change-Id: I845b4d99711055ed6a6feb1df2d1e287ea53a0fc
The purge_config parameters only accept boolean values. This enforces
that using the typed parameters.
Change-Id: I15aa0c8ddfb4063e285206de13cbb9fc8cb8143c
The password parameter is not really optional. This makes it
a required parameter to give more sensible validation error.
Change-Id: I90371da9cdd1b968a691b3e342e7eec7d0390520
This makes sure that the parameters which accept redis url are hidden
from logs, because redis url can contain password as a URL element.
example: redis://:password@127.0.0.1:6379
Closes-Bug: #2012246
Change-Id: Ief97f9e28ed7e318b56b27f03214ecc76de6798e
The gnocchi packages available in recent releases contain the changes
for policy-in-code feature so no longer require the default policies.
Change-Id: I0f3e5a7a3abec869246a248d390d86b40a7da432
This ensures the parameters used by if-else logic accept only boolean
values because non-boolean can result in unexpected behavior.
Change-Id: I5d448885136f38b442aeca3feff75e288b00cc0c
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: I010ef8ed814af439621cf944eb62426d7adb5d6f
Gnocchi replaced usage of http_proxy_to_wsgi middleware from
the oslo.middleware library by its own implementation since Gnocchi
4.4[1]. Because now both Ubuntu and CentOS uses Gnocchi 4.4.z, this
replaces the deprecated [oslo_middleware] parameter by the new [api]
parameter.
[1] bcd9a8cdd7
Change-Id: I52ba953c481bb66dd8a5af35b74c11dac6278e45
Currently parameter description of the <module>::wsgi::apache classes
are formatted differently in individual modules, and this is making
the maintenance effort quite difficult.
This change updates the description format following the standard one
we are globally using in our modules to reduce undesired differences
between modules.
Change-Id: Id99d044171b1fafefd310fafff2ce2f4de1e9fa8
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: Ifa33b2e84284d8032c4e4f54acb26c30fc285cb5
... because the parameter was deprecated during Yoga cycle[1] in favor
of the new metric_cleanup_delay parameter.
[1] 04f29cb088
Change-Id: I8efe9f153ca112dafb621edc4ee3b3d090083d91
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: Ie6310a022e9715336832865741318369bc3fa188
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: I9fe841e9dc2a90627d0debdc9b6766a847390aed
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: I7f32413d452e98306906002461ae0b4304d284ca
... because it was deprecated during Yoga cycle[1] and has had no
effect since then.
[1] be05efdc44
Change-Id: I473ccd52df065864027b6b88b49a9eece66ba1ac
The archive_policy_name parameter currently defaults to undef, which
leaves the parameter unmaintained. This change ensures the parameter is
cleared by default, as it is not set in the default configuration files
provided by packages.
Change-Id: I5a7b757307e5eae4f24f9c501a869d0693fc496b
The [storage] s3_access_key_id parameter is defined with the secret
flag, and its value should not be exposed.
Change-Id: I87fe4a3854e1f8c96041e665af16c677f14807c6
Use the whole resource type instead of its individual resources, to
rely on interface instead of implementation of the dependent module.
Change-Id: Iaa635579908ded39130305170ac3f8feaef2d9ed
It turned out defining dependency for openstacklib::wsgi::apache
doesn't properly enforce resource order and the default vhost file
is not purged properly.
This change adds the more explicit dependency to enforce the order
properly.
Change-Id: Ifb8df042e06a275ca4dd44342d3c32af65f7d209