Ensure python-mysqldb is installed before MySQL db_sync

When running MySQL for storage backend, we need to make sure
python-mysqldb is installed *before* the db_sync command, otherwise it
will fail:
"ImportError: No module named MySQLdb".

This patch ensure the ordering to ensure puppetlabs-mysql installed the
package before puppet-ceilometer tries to synchronize the MySQLdatabase.

Change-Id: Iae7c8f24fda32357a61ffa3b8597dd3413c303cb
This commit is contained in:
Emilien Macchi 2015-04-26 06:48:24 -04:00
parent b22ed8d032
commit 4cc03d183c

View File

@ -34,6 +34,7 @@ class ceilometer::db (
$backend_package = false
include ::mysql::bindings::python
Package<| title == 'python-mysqldb' |> -> Class['ceilometer::db']
}
/^postgresql:\/\//: {
$backend_package = $::ceilometer::params::psycopg_package_name