Commit Graph

27 Commits

Author SHA1 Message Date
Takashi Kajinami 5ab278a2f5 Remove support for designate-agent
... because the service was removed from designate.

Depends-on: https://review.opendev.org/c/openstack/designate/+/891317
Change-Id: Ida97a8d1a38248901aea1af2059acc5640b2e4fa
2023-10-27 12:48:40 +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 bf0a7eca61 Deprecate support for designate-agent
The agent framework and drivers have been deprecated in Designate
during Antelope cycle. See the dependent change for further details.

Depends-on: https://review.opendev.org/872716
Change-Id: Id0fc93fde98fafc4dc79a38982dd5ca844a4b049
2023-02-24 05:41:46 +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
Takashi Kajinami 751360a9b0 agent: Add support for workers and threads
Change-Id: Id3fab4c74d05a29c0784a9a44055e382f8ee66df
2021-11-10 09:27:38 +09:00
Takashi Kajinami 10e6949f8d Remove the deprecated manage_service parameter
These parameters were deprecated and renamed during the previous cycle
because of the confusing behavior which we can hardly guess from their
names[1].

[1] b7cfb61a6d

Change-Id: I93aba377d20da0733f17199707197d4e31a1606f
2021-10-15 09:15:55 +09:00
Takashi Kajinami 4bf4121155 Remove support for PowerDNS 3 driver
... because it was deprecated during Wallaby cycle[1]. This also
removes some remaining implementations used for PowerDNS 3 driver
support.

[1] 5ce240bc4d

Change-Id: I611f6333d5d0f648ab07698fafead5558ba8ccd0
2021-09-12 22:28:13 +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
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 b04ed97b9a Add "listen" option from group "service:agent"
Change-Id: I4bc6af4e88328c305feb52f1c4a3ffa1f3db0684
2016-12-06 10:13:44 +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
Xingchao Yu 681250724c Remove pick for managing package name.
Change-Id: I861b7bfab076def6106df1a64e6479684f96a448
2016-01-14 04:10:23 +08:00
Xingchao Yu 2dd7a9a0ee Use generic_service to manage services
This patch introduces designate::generic_service which is already
exists in other modules to manage designate packages and services.

Change-Id: Ic05539fbbcfb88ed95f35d5eb5ca95b7f7141ed1
Close-Bug: #1486860
2015-08-21 18:19:04 +08:00
Clayton O'Neill 5a37cc8127 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: I2b5707a0fe3dd72a56bbf1d840b4197bfa3012db
2015-07-17 14:25:04 -04:00
Gael Chamoulaud 572482ab24 Tag all Designate packages
Some users wish to override the default package provider by their own.

Tag all packages with the 'openstack' to allow mass resource attributes
override using resource collectors.

Closes-bug: #1391209

Change-Id: Idcd296c754c4c66efcbdd1672c8367ce3539b268
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-03-31 10:32:19 +02:00
Jenkins 51cd3b7ca9 Merge "Fix misc cut-and-paste mistakes" 2015-02-17 21:25:17 +00:00
Clayton O'Neill e9fe26e5a6 Fix misc cut-and-paste mistakes
Change-Id: Icdae5342fbb75a0900b6ae3669bbd1f5cd190781
2015-02-17 16:18:56 +00:00
Clayton O'Neill c268c3b3c1 Fix enabled parameter ordering
The $service_ensure and $enabled parameter ordering is inconsistent
across classes and doesn't match the order of the documentation (which
is consistent).

Change-Id: Ib221c0042f5d50b10e339c53265d2a188308f11b
2015-02-17 15:28:06 +00:00
Clayton O'Neill 4ce3c0558b Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins.  Most of these plugins are for 4.x compat, but some
just catch common errors.

Change-Id: I3b16baf063746024cb8dc89a931dae2f604258f6
2015-02-17 14:53:22 +00:00
Clayton O'Neill 2861be7d21 Make all package name and ensure customizable
This makes all package names and package ensure values customizable as
parameters.  This is helpful for people who are not using vendor
provided packaging.  This also normalizes the package ensure value to be
'present' in all case.

Change-Id: Iee186f753b2800e59addd3f38591675fd5af35ad
2015-02-15 16:07:53 +00:00
Sebastien Badia 1ecba59a87 documentation: Update readme and puppetdoc documentation
Change-Id: I97ea6e3b4e7c4ac8b407dd3b6d39fd54ffae70fe
2015-01-12 11:07:01 +00:00
Sebastien Badia d229b0f2bd Introduce Debian OS support, various fixes
* Fix designate package name require, openstack-designate is the final
  package name, designate-common name is override by params class.
* Remove designate-common dependency on central/sink/api services.
* Fix designate::api/keystone_user default user.

Change-Id: I441565d39ba5d425c6b93db071237a85f1eb4b1f
2014-11-02 17:42:04 +01:00
Xingchao Yu 9aa3c41db7 Update options in designate::agent 2013-10-18 15:04:18 +08:00
Xingchao Yu 3efd9fd50e Add designate agent 2013-10-15 11:23:25 +08:00