7 Commits

Author SHA1 Message Date
ZhongShengping
a4386416da Include deps class in unit test for postgresql
Change-Id: I29591b946129e970eb051626b03059e692407a97
2020-10-10 09:31:12 +08:00
Takashi Kajinami
f562e27069 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: I6a46e45b8af4c8c1cdf7913bc625b57e49a79687
2020-05-19 19:40:36 +09:00
Maksym Yatsenko
51f5519f11 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: I6b994becf8963020a56902785e2c569553c95a14
2016-10-13 13:44:37 -06:00
ZhongShengping
ba21901512 Test multiple operating systems for db
This change updates the tests for ceilometer::db::postgresql and
ceilometer::db::sync to test multiple operating systems.

Change-Id: Ia3776f80bbd37981725668a55a76ecd4f20389c0
2016-04-30 09:55:32 +08:00
Iury Gregory Melo Ferreira
6156cb49f2 Ceilometer $::os_service_default for db and log
Switch to $::os_service_default all params in logging and db.
Changes: logging.pp, db.pp and tests.

Related-bug: #1515273

Change-Id: I412104bf46c4b40fdbd366e3a8a9dc9de5abb5fd
2015-11-24 18:49:06 +00:00
Sebastien Badia
55b7aad8cf 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 new
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: Ieaff6bc8bdd8548648ff5e76b212d4df382fa8a3
Card: https://trello.com/c/eHXc1Ryd/4-investigate-the-necessary-change-to-be-rspec-puppet-2-0-0-compliant
2015-03-11 08:56:44 +01:00
Sebastien Badia
a4cac0d56b db: Added postgresql backend using openstacklib helper
Standardize ceilometer module, and add postgresql backend.

Change-Id: I6603304cab680185d289e6b284e55deaef437b61
Implements: blueprint commmon-openstack-database-resource
2014-12-30 18:55:06 +01:00