10 Commits

Author SHA1 Message Date
Tobias Urdin
c8fb3d1b5c Add sqlite to validate_re
When doing spec tests on your custom modules
you want to have as little dependencies as
possible so specifying sqlite is the simplest.

If you specify mysql or postgresql you'll need
your custom testing grabing the upstream puppetlabs-mysql
or puppetlabs-postgresql modules which just adds unnecessary
deps instead of a few bytes in a validate_re function.

Change-Id: If25e8c0161bdd487f11460884883f42ea13074b3
2018-07-17 13:35:41 +02:00
ZhongShengping
231940f0f4 Add pool_timeout option
Add pool_timeout option to configure this value for pool_timeout with
SQLAlchemy.

Change-Id: I256a68a971671f1b6076e5fadffbb816fb3553cd
Closes-Bug: #1757581
2018-03-22 11:09:50 +08:00
ZhongShengping
785ab85b29 Fix mysql connection
URL mysql://scott:***@some_host/some_db does not contain a '+drivername'
portion, and will make use of a default driver. A full dbname+drivername://
protocol is recommended. For MySQL, it is strongly recommended that
mysql+pymysql:// be specified for maximum service compatibility.

Change-Id: Ic51da9a9d0c6380eeb4da85d192a5a19ebf96c79
Closes-Bug: #1753342
2018-03-05 08:57:21 +08:00
ZhongShengping
3a3c9102a3 oslo db: check puppet resource instead of actual config in spec
Change-Id: Iea6c3e4abd5eac70a223ae7d19869bebf6708446
2017-04-10 19:34:51 +08:00
Jenkins
f0e9136527 Merge "Update tests with rspec facts" 2016-05-21 14:52:11 +00:00
Nate Potter
ac3b678746 Update tests with rspec facts
This patch updates tests that perform on Debian/RedHat sets to use
on_supported_os from rspec-puppet-facts.

Change-Id: I4b7bec3e0b314cda34e41bda3892847a23325bb9
2016-05-20 10:32:25 -07:00
ZhongShengping
6531e716b3 Add support for db_max_retries param
The db_max_retries parameter regulates the number of reconnection
attempts performed after an error raised rather than at startup.

Change-Id: I4ebdf862e39b05bf28805052144b7dbad42a15de
Closes-Bug: 1579718
2016-05-18 22:30:04 +08:00
Michal Adamczyk
e941ab51fa Various fixes
- correcting "host_ip" entry to be "host" entry for magnum.conf
- correcting "userid" to be "rabbit_userid" entry inside magnum.conf
- db sync function
- beaker tests are working on Ubuntu as well
- update metadata.json with new openstacklib version
- as we don't have a database parameters in main class we don't want to pickup values from it inside db class

Adding:
- client class with client package installation
- examples folder with example which works with Mitaka release
- spec for db_sync
- adding nodesets spec for CentOS 7.2
- adding class and spec for creating user and domain for trust setup: http://osdir.com/ml/openstack-dev/2016-02/msg02123.html
- class to configure cert_manager_type properties

Known issues:
- In CentOS/RDP cannot create magnum bay due to the neutron issues: https://bugs.launchpad.net/magnum/+bug/1575524
- Trust domain and trust domain user has to be set to ID, not a names. Bug reported to magnum devs: https://bugs.launchpad.net/puppet-magnum/+bug/1581372

Change-Id: Ib923f79da691b5c71bb1c4efba8935c774598888
2016-05-16 07:48:21 +00:00
Iury Gregory Melo Ferreira
9b7ac7a647 Switch magnum to $::os_service_default
Switch to $::os_service_default all params in logging and db.
Changes: logging.pp, db.pp and tests.

Change-Id: Ic3ff963064fcb34f86056d88b6f2dce5e270fedc
2015-12-03 15:24:51 +00:00
Nate Potter
6a34ff8435 puppet-magnum: Initial commit
This is the initial commit for puppet-magnum.
It has mostly 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: Id43f377828837dba70745bbe66b51297e383e602
2015-11-12 15:52:15 +00:00