From: Soren Hansen Date: Wed, 16 Jul 2014 13:13:48 +0000 (+0530) Subject: Use 2.2 as the default mysql_module X-Git-Tag: 5.0.0~17^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0d0eda813ecc7968570bc6652815e9f1a3622b55;p=puppet-modules%2Fpuppet-ceilometer.git Use 2.2 as the default mysql_module Change-Id: I91c87fa0b4d5871aa936a5b4842b47f4cfee4ca8 --- diff --git a/.fixtures.yml b/.fixtures.yml index 43fc9b5..08b2b2d 100644 --- a/.fixtures.yml +++ b/.fixtures.yml @@ -4,7 +4,7 @@ fixtures: 'keystone': 'git://github.com/stackforge/puppet-keystone.git' 'mysql': repo: 'git://github.com/puppetlabs/puppetlabs-mysql.git' - ref: 'origin/0.x' + ref: 'origin/2.2.x' 'nova': 'git://github.com/stackforge/puppet-nova.git' 'stdlib': 'git://github.com/puppetlabs/puppetlabs-stdlib.git' symlinks: diff --git a/manifests/db.pp b/manifests/db.pp index f2f24ef..0f17bf8 100644 --- a/manifests/db.pp +++ b/manifests/db.pp @@ -12,12 +12,12 @@ # [*mysql_module*] # (optional) Mysql puppet module version to use. Tested versions # are 0.9 and 2.2 -# Defaults to '0.9 +# Defaults to '2.2' # class ceilometer::db ( $database_connection = 'mysql://ceilometer:ceilometer@localhost/ceilometer', $sync_db = true, - $mysql_module = '0.9', + $mysql_module = '2.2', ) { include ceilometer::params diff --git a/manifests/db/mysql.pp b/manifests/db/mysql.pp index ca7548d..728ea96 100644 --- a/manifests/db/mysql.pp +++ b/manifests/db/mysql.pp @@ -29,7 +29,7 @@ # [*mysql_module*] # (optional) Mysql module version to use. Tested versions # are 0.9 and 2.2 -# Defaults to '0.9' +# Defaults to '2.2' # class ceilometer::db::mysql( $password = false, @@ -39,7 +39,7 @@ class ceilometer::db::mysql( $allowed_hosts = undef, $charset = 'utf8', $collate = 'utf8_unicode_ci', - $mysql_module = '0.9', + $mysql_module = '2.2', ) { validate_string($password) diff --git a/manifests/db/mysql/host_access.pp b/manifests/db/mysql/host_access.pp index 9869f99..e91a551 100644 --- a/manifests/db/mysql/host_access.pp +++ b/manifests/db/mysql/host_access.pp @@ -13,7 +13,7 @@ # [*database*] # the database name # -define ceilometer::db::mysql::host_access ($user, $password, $database, $mysql_module='0.9') { +define ceilometer::db::mysql::host_access ($user, $password, $database, $mysql_module='2.2') { # New types for mysql module v2.0+ if ($mysql_module >= 2.2) { mysql_user { "${user}@${name}":