Commit Graph

18 Commits

Author SHA1 Message Date
Takashi Kajinami 5190a311fb mdns: Deprecate support for storage_driver
Support for different storage driver has been deprecated in 2023.2
cucle[1], and the options have been removed[2].

[1] 0c30fc491b0012da13a562c9107f4451790607dd
[2] ef4640347ab31b6c0e096dfc22bcf078326339d0

Change-Id: Ib238a463fc3c04dcbb464de0521f3fe700c6bf14
2023-11-15 02:32:01 +09:00
Takashi Kajinami 91a941c2d6 Deprecate support for removed [service:mdns] topic
This option was removed from designate. This also makes a few more
implementations about the removed parameters ineffective.

Depends-on: https://review.opendev.org/899541
Change-Id: Ida1e4e2e970a313bce8d1f2fcc3c703aa9d068bf
2023-10-31 22:23:03 +09:00
Takashi Kajinami 68ceda6a23 Move some options from mdns to worker
... following the migration in designate itself.

Depends-on: https://review.opendev.org/c/openstack/designate/+/845508
Change-Id: I6528d7cbae72b8f6f9ae8d26f9258f3b9e82e560
2023-10-23 23:10:03 +09:00
Takashi Kajinami 8ed0bcb867 replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Note that this change looses validation about pool ids. Alternatively
we can define a new data type to keep the validation, but these defined
types for pool-manager were already deprecated and useless and will be
removed in a near future release so we avoid that redundant step.

Change-Id: I85d7058bf379c6aa0e787b2f806f14aebf0693d3
2023-06-19 17:27:32 +09:00
Takashi Kajinami 5e89485f5d 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: I703a2a64ce15ea6adf7cf233e635baf3ad963d31
2023-03-03 04:37:27 +00:00
Takashi Kajinami dd44ce031e Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Ica6edbc7077c0bb2021cc737f44f3ced84cd5f83
2023-03-01 16:49:01 +09:00
Takashi Kajinami 0c11bcfe7e mdns: Improve parameter coverage
Change-Id: I140b3c9bc136d488bd5080e1ecb888c4bd703813
2022-04-11 15:56:58 +09:00
Takashi Kajinami 61233cea55 mdns: Accept array value for the listen parameter
... because this parameter is ListOpt which takes a comma-separated
string, which represents a list value.

Change-Id: I3e0682b358fe33b7ae341f3d7a5a1de5943c30e3
2022-04-11 14:30:10 +09:00
Takashi Kajinami e586326e77 Stop inheriting the base designate class
... because it is not required and inheriting designate::params is
enough. Reducing scope of inheritance allows us to decouple individual
classes.

Change-Id: Iacb44a1d485c475bcb3a0be053c8ed7a60399866
2022-02-14 11:12:43 +09:00
Jacob Aharon b7cfb61a6d Standardize the manage service parameter
Rename confusing service_ensure parameter.
Based on:
https://review.opendev.org/c/openstack/puppet-designate/+/773372

Added manage service parameter to worker.pp, so it will have the same
service management functionality as the rest of the services.

Change-Id: Ibe58d1395ee0b79af7535714ef5c9d2b26b52780
2021-07-30 22:38:01 +09:00
Tobias Urdin b7f73b35c5 Convert all class usage to relative names
Change-Id: Iae69aff79cc231336b14d65305fff9c64cbd27e0
2019-12-08 23:04:25 +01:00
Mathieu Gagné 412ca9519c Only designate-central and mdns require database access
According to Designate architecture documentation,
only the designate-central and mdns services require database access.

This change removes the designate::db class for generic service and
include the designate::db class for services that need it instead.

Change-Id: I696745e2d57aade6cbb0fe89e334fddf1beaafdb
2018-10-22 13:41:36 -04:00
Tobias Urdin 25f07ee1e1 Remove deprecated parameters
Removes deprecated parameters that has been
deprecated for one cycle or more.

Change-Id: I01e33221ef4f2c3afd5277dbc3f1787feee31f37
2018-05-22 12:18:55 +02:00
Thomas Herve 34e606c795 Use os_workers when applicable
This uses os_workers as default for every workers config setting of the
various services.

Change-Id: I828f7fd8000d8e386b4d794ba8bf308599aa5491
2017-11-28 09:39:26 +01:00
ZhongShengping e837bed3ff Inconsistent package_ensure parameter name
The parameter name used to enforce package state is inconsistent across
manifests and modules. I settle on package_ensure since it's already
widely used.

Change-Id: I9868f954a032a0014b9304526daf5476b0922c5d
Closes-Bug: #1668732
2017-03-08 17:54:18 +08:00
ZhongShengping 1e95f32a6f Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: If9fa188b7dca47e6724a737d66e34c0c85668c36
2016-12-01 08:44:02 +08:00
ZhongShengping 8a6190a30d Deprecate host and port options
The "host" and "port" options from group "service:mdns" have been deprecated
in favor of the listen option setting.

Change-Id: Idedd1d7c6cf0f7d353181f7e24a651f6244d3275
Closes-Bug: #1643272
2016-11-22 17:55:19 +08:00
Xingchao Yu c3d6ea6451 Add designate::mdns class
This patch is aim to add a new class designate::mdns for managing
designate Mini Dns service.

Change-Id: Iafd145b41c3e2202f3656084d365f98e6daee585
Closes-Bug: #1486301
2016-02-01 10:14:47 +08:00