28 Commits

Author SHA1 Message Date
Pradeep Kilambi
96040df940 Make skip gnocchi option overridable
Since gnocchi is the default backend, We might want to be able to
override this option and let it skip by default for compatibility.
let user set it via extra_params.

Change-Id: I23e43552e14ced5a7da5e16ef323df3b1ec6722d
2017-03-15 17:51:06 +00:00
ZhongShengping
fc4a0fd510 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: I0d18ec6ffe6b54c85773a6dabb0ed7b6f59a12f4
2016-11-29 17:32:37 +08:00
Alfredo Moralejo
af4af189ea Replace ceilometer-dbsync by ceilometer-upgrade
https://review.openstack.org/#/c/388688/ has removed ceilometer-dbsync
and ceilometer-upgrade must be used instead.

Additionally, ceilometer-dbsync enabled option --skip-gnocchi-resource-types
and ceilometer-upgrade doesn't, so i'm setting it by default to
ensure backwards compatibility.

Closes-Bug: #1641076

Change-Id: I383fb7922e7984b067742e10a370b0d2f574dbe9
2016-11-11 10:50:33 -05:00
Sharat Sharma
b7d3c18b2a 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: I6117fc818c44ac31ae656c18ed7fe5434fa73b77
Closes-Bug: #1628580
2016-09-29 07:00:43 +00:00
Xingchao Yu
27654f3e17 Improve format of the documentations.
This patch is aim to unify format of the documentations in all
ceilometer classes.

Change-Id: I8b617a14146a90758fa6b8898637206bff6d2f29
2016-01-11 22:33:42 +08:00
Nate Potter
fa33bb0ad6 Allow customization of db sync command line
Add parameter to ceilometer::db::sync class to allow end
users to add command line parameters to the db sync command.

Change-Id: I664a822ef2962d5cb32bef7573e13f0b57ee6057
Partial-bug: #1472740
2015-11-03 16:50:23 +00:00
Matt Fischer
fb936e5409 Remove deprcated mysql_module
This has been deprecated and non-functional for awhile, remove it.

Change-Id: Ibca25bf41e9bf7979f67829683f02611d537235d
2015-10-21 21:18:24 -06:00
Yanis Guenane
7b920066e1 Creation of ceilometer::db::sync
In order to standardize the way dbsync are run across our modules,
we create a new class ceilometer::db::sync.
This class will be included if sync_db is enabled.

By making this transition the ceilometer::db::sync can be returned
by the ENC.

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

Change-Id: I410f41fb4e61be848372820cdeb2110efc327161
2015-08-17 10:09:41 +02:00
Emilien Macchi
441fe25bfe 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: I9fb58a749436873b60b51bb67127ae9524f944db
Closes-bug: #1446375
2015-04-21 13:05:47 -04: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
Colleen Murphy
15ab1a6e27 Migrate mysql backend to use openstacklib::db::mysql
Implements: blueprint commmon-openstack-database-resource
Change-Id: Iaa4f1cfb6a26795112117e2d3230b4a11250e2df
2014-08-13 11:13:44 -07:00
Soren Hansen
0d0eda813e Use 2.2 as the default mysql_module
Change-Id: I91c87fa0b4d5871aa936a5b4842b47f4cfee4ca8
2014-07-16 18:44:55 +05:30
Chris Ricker
166b00a773 Default to utf8 for MySQL
Change default charset to utf8 and default collation order to
utf8_unicode_ci to align with upstream defaults.

Change-Id: I0fb57f14a0d30226c840a6e920f2b3807b90080a
Closes-Bug: #1322715
2014-05-23 15:14:48 -04:00
Mark T. Voelker
f444fc8937 Add table to mysql_grant call
When using puppetlabs-mysql 2.2 with the ceilometer module, an
error occurs due to a call to mysql_grant not specifying a table.
This patch corrects the error by rectifying the mysql_grant call.

Change-Id: I0619446907c5fb51dcdb6e5717faeb61442c699b
Closes-Bug: #1308884
2014-04-17 03:17:35 -04:00
Michael Chapman
addaf5179d Add support for puppetlabs-mysql 2.2
This patch adds support for the new version of
puppetlabs-mysql via a parameter that will change
which types and classes to depend on from the
mysql module. No spec tests are included since any
tests relying on the new module will fail until
the fixtures are updated.

Change-Id: I3f76cc600ef8d6e0c88c988f96aadbf18d81f7f1
2014-03-16 21:24:10 +11:00
Xingchao Yu
10107796ff Update mysql allowed_hosts conditional statement
In the origin ceilometer::db::mysql, if the value of $allowed_hosts
contains or equals to $host, then puppet will complain duplicate
declaration error. This patch is aim to update the allowed_hosts
conditonal statement in ceilometer::db::mysql.

There are two cases to pass $allowed_hosts to $real_allowed_hosts:

   - If $allowed_hosts is array,then remove $host from $allowed_hosts;
   - elsif $allowed_hosts is string and not equivalent to $host;

At last, if $real_allowed_hosts is not undef, then run
ceilometer::db::mysql::host_access

Fix bug 1206444

Change-Id: Ib6c33e6a27113d01326bee32c105fea4003059ce
2013-08-04 17:38:44 +08:00
François Charlier
74bbcac98b Merge remote-tracking branch 'mgagne/grizzly' into lint
Conflicts:
	manifests/db/mysql.pp
	manifests/db/mysql/host_access.pp
	manifests/keystone/auth.pp

Update some docs in the process
2013-04-23 10:51:24 +02:00
Mathieu Gagné
7ac5982b5c Fix various puppet-lint errors and warnings 2013-04-21 17:29:06 -04:00
François Charlier
8e97414369 Ensure passwords/secrets are specified by user 2013-04-20 05:50:29 +02:00
François Charlier
f63fde7ab3 Fix lint errors, add some documentation 2013-04-20 04:28:44 +02:00
François Charlier
c68a36d341 Fix order dependencies 2012-12-21 23:42:06 +01:00
François Charlier
c32c3ef345 Add user to localhost 2012-12-17 17:14:57 +01:00
François Charlier
4ae12d7905 Add ceilometer-dbsync and fix some db-related deps 2012-12-10 17:22:46 +01:00
François Charlier
e2b0c7fca1 Move database settings to a different class 2012-12-10 16:55:38 +01:00
emilienm
1e813a57aa Fix ceilometer::db::mysql class 2012-12-07 15:20:47 +01:00
emilienm
6f99e6911e Fix ceilometer::db::mysql class 2012-12-07 15:18:57 +01:00
emilienm
68b960a245 Fix Typos 2012-12-07 11:52:05 +01:00
emilienm
ff053ee175 First Commit 2012-12-07 09:43:55 +01:00