Commit Graph

23 Commits

Author SHA1 Message Date
Takashi Kajinami ec8079de90 Run db setup by the service user instead of root
... because the command doesn't require root privilege. This follows
the guidance in current installation guide[1][2].

[1] https://docs.openstack.org/designate/latest/install/install-rdo.html
[2] https://docs.openstack.org/designate/latest/install/install-ubuntu.html

Change-Id: If664267a805edb5f7262274b0dc5b152d514c629
2022-02-20 19:21:47 +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
Christian Rohmann 747701570d Add designate::db::postgresql class.
This allows Designate to be used with PostgreSQL.

Change-Id: Ief63f88ba323e3f20300b8ff6a5148a78413ac3d
2021-03-17 20:16:13 +01:00
Zuul 988d490b64 Merge "Deprecate support for configuration of powerdns 3 driver" 2020-11-30 20:44:29 +00:00
Takashi Kajinami 5ce240bc4d Deprecate support for configuration of powerdns 3 driver
... because it was removed from designate[1]

[1] 660eacbce4b1a4a409cd084a9c9f6e6e8f5e581a

Change-Id: I8a1861afc2c74fd52836e4b5955bc6bdd929fbf6
2020-11-25 20:56:10 +09:00
ZhongShengping 405eac4390 Allow db sync timeouts to be configurable
As Openstack projects continue to have longer database migration
chains, the Puppet default timeout of 300 seconds for an execution
is becoming too short a duration on some hardware, leading to timeouts.
As projects continue to add more migration scripts without pruning
the base, timeouts will continue to become more frequent unless
this time can be expanded.

Change-Id: I0479e0ef6262d6753d199c12fb0dc98069dd32fe
Closes-Bug: #1904962
2020-11-23 13:17:14 +08:00
Takashi Kajinami 7abf5d8d70 Remove password hash generation in each puppet modules
... and migrate it to openstacklib so that all logics about database
configuration are implemented in one common place.

Depends-on: https://review.opendev.org/#/c/728595/
Change-Id: I037632b6f06907c62be7e94f50b94c08ac6ab051
2020-05-19 20:16:33 +09:00
Tobias Urdin b7f73b35c5 Convert all class usage to relative names
Change-Id: Iae69aff79cc231336b14d65305fff9c64cbd27e0
2019-12-08 23:04:25 +01:00
Tobias Urdin e63fec36d3 Use puppet 4 compatible mysql functions
These was introduced in 6.0.0 and is required to
support later version of puppetlabs-mysql.

Change-Id: Ib0af84954cd7fc34b83e72915972f107d731957a
2019-02-08 12:03:55 +01:00
ZhongShengping e18521569a Cleanup documentation
Make sure documentation is the same and follow
the standard which we are trying to enforce on
all modules.

Change-Id: I47f55d8e608509ee9f42a00edb7acfe59ca87983
2018-12-13 17:10:01 +08:00
zhubingbing 394ae36b81 Fix annotations
Change-Id: I08897a44f4debec313378b7a88190390f3d6efa1
2018-06-15 15:07:37 +08:00
ZhongShengping 1f89623c2a Remove useless code for sync.pp
In order to improve efficiency, remove useless code.

Change-Id: Iac4f29ac0bb906c7c428e298c5b717c7d0b86296
2018-04-08 09:05:38 +08:00
ZhongShengping 2f21d410d9 Add 'openstack-db' tag to db-sync Exec resource
In order to make easy orchestration on all OpenStack db-sync, add this
tag so people can use this tag in composition layer.
A use case it to set some orchestration to make sure MySQL Galera is
ready before running any Exec with this tag.

Change-Id: I1108bfeb4a82fb1b41e3eb135088940c052ce016
Closes-Bug: #1755102
2018-03-12 16:33:06 +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
Sharat Sharma 0ffa512cb2 Added retries for db_sync
If db sync fails, it is never retried leading to errors. So, this
patch adds retries for db_sync to avoid sync fails.

Change-Id: I0250c4f5c6b9d2d8a5487bf6d01c79c69b0770b6
Closes-Bug: #1628580
2016-09-29 06:51:33 +00:00
Nate Potter f5c5f88eed Allow customization of db sync command line
Add parameter to designate::db::sync class to allow end
users to add command line parameters to the db sync command.

Change-Id: Iae224e97d91ee24e0aae1b79330f0906ff516508
Partial-bug: #1472740
2015-11-14 14:43:35 +00:00
Yanis Guenane 3d4879dc4d Creation of designate::db::sync
In order to standardize the way dbsync are run across our modules,
we create a new class designate::db::sync and
designate::db::powerdns::sync.
Those classes will be included if sync_db is enabled.

By making this transition the designate::db::sync class and the powerdns
related one can be returned by the ENC.

A use case would be in an highly available environment, with 3 galera
nodes, include designate::db on every node with sync_db set to false
and have the ENC return designate::db::sync just for one node.

Change-Id: I3e14b82055cfadf3274d6657413668b11f28ec49
2015-09-08 11:26:12 +02:00
Matt Fischer 9f7fa6175f MySQL: change default MySQL collate to utf8_general_ci
Install & configure MySQL database by using utf8_general_ci collation
which is the way documented in OpenStack [1] and already the default
in puppetlabs-mysql [2].

[1] http://goo.gl/GA5gyZ
[2] https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/db.pp#L7

Change-Id: Iecd7c65aadaba15d2ed078b580cfa044f98919c5
Closes-bug: #1446375
2015-06-19 14:41:20 +00:00
Clayton O'Neill 94107a2d67 Add PowerDNS backend
This adds configuration for configuring Designate to use the PowerDNS
backend, creating the database PowerDNS and Designate share and also
installing PowerDNS.  This does not configure PowerDNS itself, aside
from installing it.

Change-Id: I0607bc24023bdfefa7fd40b8d25a4f3bdc468c9b
2015-03-23 14:02:46 +00:00
Clayton O'Neill e1cfb0536d Fixup Juno mysql configuration
The config parameter has changed from storage:sqlalchemy/database_conection to just
storage:sqlalchemy/connection.

The dbinit command no longer exists, and the db sync command has been
renamed.

Change-Id: I69f529717de04ee0084188a7f94dab26bc120e2f
2015-02-15 15:12:28 +00:00
Xingchao Yu c2f248b30b Update designate::db::mysql backend
Use openstacklib::db::mysql to replace mysql module related classes.
b/c designate::db::mysql didn't use mysql_module option, so it's not
necessary to add warning info.

Change-Id: I250dde270b2563a537833f062028d5e68222b732
2014-09-24 04:32:37 +00:00
Xingchao Yu 7da0e4bbe0 Fix database-init always run before mysql::db 2013-09-27 11:22:34 +08:00
Xingchao Yu bbdbc64bb4 Init commit to do basic setting 2013-09-25 22:22:17 +08:00