Commit Graph

38 Commits

Author SHA1 Message Date
Takashi Kajinami 0dac9f689a Remove useless "warning" in parameter description
It's not much useful to explain the deprecated parameter which is not
supported by this module.

Change-Id: I97f90258a97240713ee5b000dd9da959e89826dd
2023-10-27 22:55:11 +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 d096b9dc4b Central: Remove deprecated max_domain_name_len
The parameter was deprecated during the previous cycle[1].

[1] 1f0071ef8c

Change-Id: I922892d2317d1ea64aaf5965cfeef950dc885504
2022-05-03 00:30:08 +09:00
Tobias Urdin db745b652a Set managed_resource_tenant_id default to service default
The managed_resource_tenant_id default is currently set
to 12345 which is invalid and will cause issues in designate.

We should use service default instead so that it gets the
designate.conf default value (which is a valid UUID).

Change-Id: Ice64a6d244f8b463382d91bcc7f0600816abacd2
2022-02-23 02:31:16 +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 e55ad1e8f0 Add support for [service:central] scheduler_filters
Change-Id: I716a68e6ade9111edd3716af7e62d998d7e52de4
2021-11-10 10:36:16 +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
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
Takashi Kajinami 1f0071ef8c Fix the outdated parameter to define maximum zone name length
The max_domain_name_len parameter was renamed to the max_zone_name_len
parameter[1]. This patch fixes the outdated parameter.
Note that this change directly invalidate the old parameter instead
of using its value to set the correct parameter, because the parameter
has been broken for a long time.

[1] c5949ccb2825128dc3f9c51cc333407246cf12a9

Change-Id: I47545c0d58e7c904ce51278c7bf9e26ab5af406b
2020-12-15 22:02:58 +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
ZhongShengping 41b572b122 Remove deprecated backend_driver options
The backend_driver option has been deprecated in Ocata.
we can remove it.

Change-Id: If24fb1b814c255d90391a6ee42167b36f5f156bf
Depends-On: I90b7fdb454249c9e0777371a357c545aac6f46fc
2018-02-08 17:18:56 +08: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
Sharat Sharma 74aee65cdf Added options central service
This patch adds workers, threads, default-pool-id options to the
central.pp as these options can be configured for designate-central.

Change-Id: I0635d5fd2ece7bca85fab772a055c999d6721c1a
Closes-Bug: #1539327
Co-Authored-By: Sharat Sharma <sharat.sharma@nectechnologies.in>
2017-11-08 13:56:29 +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
Sam Morrison ae4b864bbc Remove service:central/backend_driver option, no longer exists
Change-Id: Ide49b872e0bbea640d9948c6d3d6809b70e5d767
2016-12-09 10:45:40 +11: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
David Moreau-Simard c4a990e817 Leave the default value of min_ttl up to the service
The previous default, 'None', would error out with oslo_config
expecting an integer value.

ERROR designate ConfigFileValueError:
 Value for option min_ttl is not valid:
 invalid literal for int() with base 10: 'None'

Change-Id: I056c7fff1607b6e7b9153ed7df4868900dc5ae44
2016-07-04 22:46:46 -04:00
Xingchao Yu 681250724c Remove pick for managing package name.
Change-Id: I861b7bfab076def6106df1a64e6479684f96a448
2016-01-14 04:10:23 +08:00
Xiaohua Yuan 254942c69c Add related parameters to designate::central
This patch is aim to add the following params in to designate::central
  - max_domain_name_len
  - max_recordset_name_len
  - min_ttl

Change-Id: I66b40c244addc849d87fabf87d4d394cba012e86
closes-Bug: #1482004
2015-11-25 03:01:14 -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
Xiaohua Yuan b0bf5c0e30 Add related parameters to service::central section
This patch aims to add the following params to
service::central section.
  - managed_resource_email
  - managed_resource_tenant_id

Change-Id: I341d0d99fb843f2053b07ef189b93cbf75303649
closes-Bug: #1482204
2015-08-09 06:01:32 -07: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
Clayton O'Neill 2dfe3c7fec Qualify designate Class requires
Change-Id: I2f07f24fff2b895077dc2200c675ed1546b5a8ba
2015-02-26 18:33:14 +00: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 77f6823b31 Fix lint error and warnings
use rake lint fix existing errors and warnings
2013-10-18 16:18:57 +08:00
Xingchao Yu 9f9bd60b71 add servce_ensure option 2013-09-26 23:37:12 +08:00
Xingchao Yu 55ac29b923 Fix central package error 2013-09-26 10:32:15 +08:00
Xingchao Yu bbdbc64bb4 Init commit to do basic setting 2013-09-25 22:22:17 +08:00