c7e97b66b7c43b4d2a07c321927cb01f5187def2
Commit Graph

39 Commits

Author SHA1 Message Date
Takashi Kajinami
c7e97b66b7 Validate ensure parameter for package resources
The minimum version of puppetlabs-stdlib has been bumped globally, so
now we can use the common type definition.
Change-Id: I0f468404790f6b084e48110dc19a3ec6f0dd6163
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025年09月23日 21:03:03 +09:00
Takashi Kajinami
9718f428f5 Prepare for voxpupuli-puppet-lint-plugins
Fix new lint errors detected when full of the voxpupili lint plugins
are enabled.
Change-Id: I8ebe256188945780f730ab51fc07ee55d2ecd508
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025年08月19日 23:36:36 +09:00
Takashi Kajinami
682e3dd1bb Prepare for new lint plugins
This fixes a few lint warnings/errors detected by the following plugins
we aim to enable soon.
 - puppet-lint-file_ensure-check
 - puppet-lint-trailing_comma-check
 - puppet-lint-topscope-variable-check
Change-Id: I6f4f9d36a538dec703b5a58ae50b2a0cb29a75ee
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025年08月15日 19:56:50 +09:00
Takashi Kajinami
1a9a480750 Switch to namespace sdtlib functions
puppetlabs-stdlib deprecated the existing functions in favor of
the new stdlib:: functions in 9.0.0. The version was released a few
years ago and now we assume we are ready to adopt to the migration.
Change-Id: I8dd955be370b6a9289dbb22e930464873d224898
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025年08月14日 18:00:38 +09:00
Takashi Kajinami
c866d86a06 Add support for [cache] backend_expiration_time
Depends-on: https://review.opendev.org/932301
Change-Id: Iaf4082ce3bff32712d2c26cbaca4a70d19066472
2024年11月02日 23:05:07 +09:00
Takashi Kajinami
e21a6c603c cache: Support new redis options
The oslo.cache 3.7.0 release introduced some options for redis backend
and redis sentinel backend. This introduces for these parameters.
Change-Id: I0386f2cc97346242549713e9663c48ca2b9444ac
2024年03月01日 10:15:25 +09:00
Takashi Kajinami
dfbc0c1283 cache: Install backend package for bmemcached/redis backend
The oslo.cache library supports the following backends which require
additional backend packages.
 - dogpile.cache.bmemcached
 - dogpile.cache.redis
This ensures that the required backend packages are installed according
to the selected backend.
Change-Id: Ifaaf9e7a4f0557218adbdd3ff967814d384b4064
2024年02月29日 23:35:56 +09:00
Takashi Kajinami
ca8fc7f52b cache: Support options for memcached with SASL enabled
This introduces support for oslo.cache options to use memcached with
SASL enabled.
Change-Id: I2b93a4871de5320fdfcfab8f507c4c47b351d6c2
2024年02月26日 11:10:09 +09:00
Takashi Kajinami
a878ebe071 Add support for [cache] memcache_pool_flush_on_reconnect
... so that all memcache pool options are supported.
Change-Id: Idf443c2d8f2f5d5b77e3129ac6affa4d91490222
2023年12月07日 12:47:10 +09:00
Benedikt Trefzer
fd71263284 remove validate_legacy (Booleans only)
Change-Id: I58de785f83e11d3db2393bdc8dcd240f37e15fdd
2023年06月15日 22:17:35 +02:00
Takashi Kajinami
ee865e8859 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: I666fea269663f219500c3a3ee748393c343b3f72
2023年03月03日 04:38:05 +00:00
Takashi Kajinami
548d68cf35 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.
Change-Id: Ib0bdb6329a438ac44886ee0494d0c52ad344a1bf
2023年03月02日 12:37:35 +09:00
Zuul
978b7ef3cf Merge "cache: Support array value for tls_allowed_ciphers" 2022年11月30日 05:08:48 +00:00
Takashi Kajinami
6f502efdc1 Fox wrong format of [cache] backend_argument
This option is not a ListOpt but a MultiStrOpt. So an array values
should NOT be converted to the colon-separated list format.
Closes-Bug: #1997603
Change-Id: If346affd48013f4f553a5fddc93524a8408cc605
2022年11月24日 10:49:02 +09:00
Takashi Kajinami
0532649275 cache: Support array value for tls_allowed_ciphers
The [oslo_cache] tls_allowed_ciphers option takes a colon-seprated
list. This change allows usage of a native array value to set
the value so that users can more easily compose up the value without
considering the actual value format.
Change-Id: I5c295c747a0f19757e3b3c7eaf990b32d7e1af11
2022年11月24日 01:41:08 +00:00
Takashi Kajinami
fc72a83bcc cache: Ensure pymemcache library is installed
The pymemcache library should be installed when pymemcache backend is
used but this library is not required by the oslo.cache library or
its dependencies and should be installed additionally.
Closes-Bug: #1988205
Change-Id: I9422af416e74c53e09f6216bcbeab234337ccbae
2022年08月30日 22:42:59 +00:00
Rajesh Tailor
513573850b Fix typos is parameter descriptions
Change-Id: I3134bd39892f7d1412dd267e4995aaece87523c2
2022年06月28日 16:57:27 +05:30
Takashi Kajinami
95544711d4 cache: Add inet6 prefix for only memcached backends
The inet6 prefix is required only by backends dependent on
python-memcached and SHOULD NOT be added when the other backends like
pymemcache backend are used.
Closes-Bug: #1965318
Change-Id: I351bd1f291b9e948cb73592a5a742d051a048d00
2022年03月18日 00:37:51 +09:00
Hervé Beraud
34e1446f44 Add pymemcache's HashClient retrying options to oslo.cache
This patch specifies a set of options required to setup pymemcache's
HashClient retrying feature (dogpile.cache) cache backend.
Original oslo.cache change:
https://review.opendev.org/c/openstack/oslo.cache/+/824944
Change-Id: I90d8e2b0cf231c9bd0fe97d4f363795886ccf8c7
2022年01月28日 16:07:39 +01:00
Hervé Beraud
f7dbe8aa5f Add retrying options to oslo.cache
This patch specifies a set of options required to setup the retrying wrapper
feature of pymemcache (dogpile.cache) cache backend.
Original oslo.cache change:
https://review.opendev.org/c/openstack/oslo.cache/+/803747
Change-Id: If4622f85e1e7f715805b205bfc3c16cb1e53b943
2022年01月28日 11:24:04 +01:00
Zuul
19ad5b2fa1 Merge "Add socket keepalive options for the pymemcache backend" 2022年01月27日 17:39:25 +00:00
Grzegorz Grasza
60495a42c9 Add socket keepalive options for the pymemcache backend
This patch specifies a set of options required to setup the socket
keepalive feature of pymemcache (dogpile.cache) cache backend.
Depends-On: https://review.opendev.org/803716
Change-Id: I7deed1bca1ce2f715967e966d4b0cedc1f227027
2022年01月27日 20:07:32 +09:00
Takashi Kajinami
c6b931c6fd cache: support etcd3gw backend
This change introduces support to use ectd3gw backend as oslo.cache
backend, and makes the required backend package installed. The same
backend is already supported for coordination and this change leverage
the existing definitions added for coordination.
Change-Id: Id0eec018a68ab4a510307f150aa2a6ee017fa651
2021年08月30日 08:01:20 +00:00
Takashi Kajinami
eb5bd8e330 cache: Allow customizing status of the backend package
This change introduces the package_ensure parameter to oslo::cache
resource type, so that users can define status of the backend package.
Change-Id: I34f10b51e1179beed327b9544b0899105cb30895
2021年08月30日 08:01:13 +00:00
Takashi Kajinami
85571a5e23 cache: Simplify handling of list parameters
Change-Id: I93fa4179f6f6ff9aac9197b62e5b4cc75911e22f
2021年08月23日 16:48:02 +09:00
Takashi Kajinami
69db796158 cache: Parse memcache_server if it's string
This change imports implementation from puppet-keystone and allows
passing a string, which contains a comma-separated list of servers,
to the memcache_server parameter.
Change-Id: If1f8b1a07d86fe477a6ea5275417278a442b90dc
2021年08月23日 16:45:52 +09:00
Grzegorz Grasza
5a8dc2b752 Add TLS options to oslo.cache
This patch specifies a set of options required to build a TLS context.
The context built from those options can later on be passed to any of
the oslo.cache backends that supports TLS connections.
Original oslo.cache change:
https://review.opendev.org/c/openstack/oslo.cache/+/725405
Change-Id: I415cfee6045cd904e9675b97750c5de2f1be55d3
2020年12月02日 14:19:19 +01:00
Tobias Urdin
c0d0059afe Consolidate python memcache bindings install
Consolidate all the installs of python memcache
bindings to use ensure_package. Right now we are
mixing the usage of ensure_resources on some places
which causes redecalaration issues.
Change-Id: I4951a7ef3addf5c113107d68ec697b617731bc06
2020年05月27日 12:20:08 +02:00
Tobias Urdin
00e3785f1f Convert all class usage to relative names
Change-Id: I842f2fffc2360ab199596db3fbd2b63441d6d6b4
2019年12月08日 23:18:01 +01:00
ZhongShengping
08476e4e73 Change memcache_socket_timeout to a float
see https://review.opendev.org/#/c/519353/
Change-Id: Ia727f5467a3b499bc2af78868adf8c872be684e1
Closes-Bug: #1835162 
2019年07月03日 14:46:23 +08:00
Harald Jensås
908503e3e9 Prefix memcached_servers IPv6 address with inet6:
Depends-On: https://review.opendev.org/661136
Change-Id: Idd45b594c5ca13c97dc8817024cc4cbc7cfbdd63
2019年05月24日 16:29:24 +02:00
Mathieu Gagné
5911b080b3 Add ability to disable backend packages management
There are use cases where an user wants to not have backend packages
automatically installed. One use case would be the user having an alternative
set of packages already providing backend packages as built-in dependencies.
Installing system packages is redundant, useless and causing confusion.
This change adds the ability to disable backend packages management
while preserving previous behavior which consists of installing them
automatically.
Closes-bug: #1715204
Change-Id: Ief676d4c5aaa81f4547dd2e090dfcc8c62855148
2017年09月05日 19:29:05 -04:00
Lukas Bezdicka
e0b9dd93e2 Switch ensure_packages to ensure_resources for python-memcache
The ensure_packages resource forces ensure to present yielding
duplicate definition errors if we override default Package ensure
to latest. We should solve this by using ensure_resources which
does not enforce this.
Change-Id: I1e2ba2b4a8ab31c925bf31ac1838999fc37b268f
Closes-Bug: #1644906
Resolves: rhbz#1392583
2016年11月28日 16:45:58 +01:00
Emilien Macchi
d028124277 cache: don't hardcode keystone-package tag to memcached package
Do not hardcode keystone-package tag to memcached package because the
resource can already be in catalog with another tag. Keep standard
'openstack' tag.
Change-Id: I3e400a5f64b85f0d374fc02cc5e4080d19d0f2e4
2016年07月27日 14:13:48 -04:00
dmburmistrov
79405c9a37 Support pylibmc and memcache cache backend
Install relevant package for pylibmc and
memcache backend.
Depends-on: I4e965b6f5449a7104677f93b00af77ae21cba94b
Change-Id: I2e6a705971761754c59b4069b5dfdfd1dfd7f00f
2016年05月31日 15:35:02 +03:00
dmburmistrov
004b813cdb Refactor array values processing
We have different strategies in handling list
values. This patch is bringing the situation
to the consistent state in this question.
Arrays and csv-strings are allowed.
This allows to put this logic inside oslo module
and clean up code duplication in exterior modules
(which can just pass parameters to oslo).
Also patch bring a few updates to top-file docs
and tests.
Change-Id: I37a37d236e643d3cf39b46243119b8393a3feea7
2016年04月08日 13:38:30 +03:00
iberezovskiy
bf40ad3dc6 Update oslo::cache define
* Fix docs for parameter
* Use only one call of create_resources
* 'memcache_servers' and 'proxies' parameter should be
 arrays (list value). So, need to convert them to
 string joined with ','.
* Prepare unit tests
Change-Id: I1a36d39bb40574e1abfb6bad3daf11a043dd0f78
2016年03月31日 18:47:43 +03:00
Liao Penghui
2ae2cc233f Change defualt value and fix some mistakes
- Use os_service_default as the default value in oslo_messaging_rabbit.
- Fix some mistakes in the specification.
2016年01月22日 15:09:09 +08:00
Xingchao Yu
59387cc544 Add define oslo::cache
This define aims to manage all parameters in [cache] section
which belongs to oslo.cache.
We would use this define to take management of [cache] parameters
in other modules.
2016年01月18日 12:27:43 +08:00