19 Commits

Author SHA1 Message Date
Takashi Kajinami
6d2b3f4d04 replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: I0808e8a311121e281b20f7493ae6bde6ef0a6929
2023-06-20 13:31:56 +09:00
Takashi Kajinami
b25f7f6277 Avoid hard-coding OS user/group in each manifest
and replace hard-codes by definition in params.pp .

Change-Id: Iadd122b33ac826902468541263f87176a556bd30
2022-02-21 01:44:32 +09:00
ZhongShengping
6c5b691a85 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: I4a3941c5a21560c6246d22e89d4566dcdc95bfd6
Closes-Bug: #1904962
2020-11-23 09:27:52 +08:00
Takashi Kajinami
7224590e4c 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: I14c7305e36a0d72215da987a7cd0d0207be6d1d0
2020-05-19 20:58:58 +09:00
Tobias Urdin
ce76a91f62 Convert all class usage to relative names
Change-Id: Ieb9a1d2c1dcef360ca7a323fe4f6cdbb61feecfe
2019-12-08 23:26:05 +01:00
Zuul
16e5b962ef Merge "Use validate_legacy" 2019-02-26 02:36:44 +00:00
Tobias Urdin
0cfd8f689c Use validate_legacy
This changes all the puppet 3 validate_* functions
to use the validate_legacy function.

The validate_legacy function has been available since
about three years but require Puppet >= 4.4.0 and since
there is Puppet 4.10.12 as latest we should assume people
are running a fairly new Puppet 4 version.

This is the first step to then remove all validate function
calls and use proper types for parameter as described in spec [1].

[1] https://review.openstack.org/#/c/568929/

Change-Id: Ib31134bb604e32fd274b41dc78c4356500f71ab0
2019-02-23 23:17:56 +01:00
Tobias Urdin
b6ed758a78 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: I4978e2706e983735f37f5441efbc6b1c8d8fd053
2019-02-08 12:31:52 +01:00
ZhongShengping
dc4aae5fc6 Cleanup documentation
Make sure documentation is the same and follow
the standard which we are trying to enforce on
all modules.

Change-Id: I04fb9ead983cc8f7df40093b6404cac15cc9ac07
2018-12-13 17:10:59 +08:00
zhubingbing
33f1550841 Fix annotations
Change-Id: Iafb904df67d9de7c9dac06cf911419e13405f029
2018-06-15 15:07:38 +08:00
ZhongShengping
d2891b9670 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: I468f796bc344f91510e977dd07cfd563174c66dd
Closes-Bug: #1755102
2018-03-12 16:33:11 +08:00
ZhongShengping
19462cb3ee Add the setting log level
Increase the setting log level in the synchronization database.

Change-Id: Ia2fc51601ed54837c2b5e7da34e9ea12f1d0bf62
Closes-Bug: #1683567
2017-04-18 11:42:25 +08:00
Thomas Herve
d1e35d4e6b Fix db-sync
This fixes the command used to sync zaqar database.

Change-Id: I9e57885796a6ba2efe8d7a16528d582163ae896a
2017-03-07 22:14:59 +01:00
ZhongShengping
c21c7126f8 Add test for sync
Change-Id: I01d0d5f50b294a4b9593a651f50cf7b5a2fddd70
2016-12-12 16:41:13 +08:00
ZhongShengping
c54428f524 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: If4f585264f5f5a15549855d97b532866d91f5215
2016-12-07 16:49:58 +08:00
Sharat Sharma
abb350c4d9 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: Id89665099079ab5e4c468f7f30953762a248af01
Closes-Bug: #1628580
2016-09-29 14:15:01 +00:00
Emilien Macchi
c510b3b66d dbsync: don't require User resource
User[zaqar] is not in the catalog, don't try to require it, it doesn't
exit!

The dbsync is run after package management so we're good.

Change-Id: Ie642f9ec6e6acc0765bc88ec4438a01a5618563b
2016-09-14 22:02:01 -04:00
Swapnil Kulkarni (coolsvap)
8b454bc7eb Update typo
Change-Id: Ia2e763e1a72157d17d03f1af885fe146eaf6bcc4
2016-01-08 03:32:14 +00:00
Richard Raseley
33c0956a92 puppet-zaqar: Initial commit
This is the initial commit for puppet-zaqar.
It has been automatically generated using cookiecutter[1] and msync[2]

[1] https://github.com/openstack/puppet-openstack-cookiecutter
[2] https://github.com/openstack/puppet-modulesync-configs

Change-Id: Iaca8f89dd22320ec0e08bfb8ec9b5912ad68c9fb
Co-Authored-By: yguenane@redhat.com
2015-08-25 09:59:38 -07:00