9 Commits

Author SHA1 Message Date
Takashi Kajinami
6d4ba3441e CentOS 9: Disable unit tests dependent on puppet-postgresql
The puppt-postgresql module does not support CentOS 9 yet and requires
some version parameters to be run on CentOS 9. This change disables
unit tests requiring that module, until the module supports CentOS 9.

Change-Id: I969b11a05a40033de6825eb6b03af8eda55778d2
2022-02-16 00:18:28 +09:00
ZhongShengping
5b19a072cb Include deps class in unit test for postgresql
Change-Id: If2cbc19fbcd9ac1ae8897d932cb17c1257a8d78e
2020-10-10 09:31:12 +08:00
Takashi Kajinami
08666039b3 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: Ie333f46508df1855dea70a32e3401bb4a5c8d4f3
2020-05-19 19:41:14 +09:00
Tobias Urdin
a7c72997a9 Convert spec testing to use rspec-puppet-facts
Change-Id: Id88ddefec141eddea8f2449b7b16dde52feeb6b8
2018-11-07 13:03:39 +01:00
Maksym Yatsenko
4fcd49b592 Change worker defaults to ::os_workers
This patch changes the default worker count from ::processorcount to the
new ::os_workers fact. ::os_workers is based on the number of processors
(currently cpu/4) but is capped at a maximum of 8 worker processors.
This is a much more reasonable default in general and prevents excessive
resource consumption on systems with a large number of CPUs.

Change-Id: I159bb64d024c2207526c73212d68230d8362164c
2016-10-06 20:09:02 +03:00
ZhongShengping
eaa0b0ddf9 Test multiple operating systems for cinder::db::postgresql
Change-Id: I80f32b3bd26a9c3a71a46779ea1b317d006f0a3b
2016-04-30 10:02:25 +08:00
Sebastien Badia
4224fdd12e spec: updates for rspec-puppet 2.x and rspec 3.x
This patch aim to update our specs test in order to work with the

rspec-puppet release 2.0.0, in the mean time, we update rspec syntax
in order to be prepared for rspec 3.x move.

In details:

  * Use shared_examples "a Puppet::Error" for puppet::error tests
  * Convert 'should' keyword to 'is_expected.to' (prepare rspec 3.x)
  * Fix spec tests for rspec-puppet 2.0.0
  * Upgrade and pin rspec-puppet from 1.0.1 to 2.0.0
  * Clean Gemfile (remove over-specificication of runtime deps of puppetlabs_spec_helper)

Change-Id: Id5b428fb518f40cf92cd27078d36f19b6d60226b
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
2015-03-11 17:58:49 +01:00
Sebastien Badia
6c792b9b64 Migrate postgresql backend to use openstacklib::db::postgresql
Let migrate to the new openstacklib::db::postgresql helper for
postgresql backend. This commit also unpin postgresql fixture
(openstacklib support now the latest version of postgre module).

Implements: blueprint commmon-openstack-database-resource
Change-Id: I45b034b9495ea02a143dad895c116077772c6b73
2014-12-30 18:00:58 +01:00
Dan Prince
982b30823e Add cinder::db::postgresql class.
This allows Cinder to be used with PostgreSQL.

Requires the puppetlabs/postgresql module. NOTE: I did add this
dependency to fixtures but did not add it to the Modulefile due
to the fact that the postgresql::python module hasn't been
released to puppetforge yet (although it is committed and tests
pass).

Change-Id: I3522d50935c81c8859c9f597df64aa0af6ca4e71
2013-04-23 18:16:25 -04:00