Commit Graph

18 Commits

Author SHA1 Message Date
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
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 e55ad1e8f0 Add support for [service:central] scheduler_filters
Change-Id: I716a68e6ade9111edd3716af7e62d998d7e52de4
2021-11-10 10:36:16 +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
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
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
Sam Morrison ae4b864bbc Remove service:central/backend_driver option, no longer exists
Change-Id: Ide49b872e0bbea640d9948c6d3d6809b70e5d767
2016-12-09 10:45:40 +11:00
David Moreau-Simard a86dc49add RDO service names are not prefixed by "openstack-" for designate
Reference: https://github.com/rdo-packages/designate-distgit

Change-Id: I86d875a2e9cab8d929bd644943ad516dbc653188
Closes-Bug #1523781
Co-Authored-By: Andrew Spiers <andrew@andrewspiers.net>
Co-Authored-By: Karim Boumedhel <karimboumedhel@gmail.com>
2016-07-05 02:47:15 +00: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
Alex Schultz a4cbc77b60 Update tests to use rspec-puppet-facts
This change is to update the tests to leverage rspec-puppet-facts for
testing multiple osfamilies.

Change-Id: Id9b82f083abb4990a6d635a8ba1a3629c4c4085b
2016-01-23 21:41:35 -07: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
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
Gael Chamoulaud 4bce7b46ef Fix rspec 3.x oneliner deprecation
* Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x) *

Change-Id: I06ca2322319f3a8bce92764e964e9fd5b6c0fd51
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-03-20 10:57:00 +01: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 343b049414 spec: Added designate::* unit tests
Change-Id: I01410468db17e84db0667ca4db4a58d0f108d8cc
2014-11-24 19:43:33 +01:00