From 4cc03d183c753f7fcbb9560cfcd80fe8e5f5db45 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Sun, 26 Apr 2015 06:48:24 -0400 Subject: [PATCH] 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 --- manifests/db.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/db.pp b/manifests/db.pp index 760d8e5c..fd121d99 100644 --- a/manifests/db.pp +++ b/manifests/db.pp @@ -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