From: Emilien Macchi Date: Sun, 26 Apr 2015 10:48:24 +0000 (-0400) Subject: Ensure python-mysqldb is installed before MySQL db_sync X-Git-Tag: 6.0.0~25^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=4cc03d183c753f7fcbb9560cfcd80fe8e5f5db45;p=puppet-modules%2Fpuppet-ceilometer.git 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 --- diff --git a/manifests/db.pp b/manifests/db.pp index 760d8e5..fd121d9 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