Skip to content

Commit

Permalink
Fixed mysql db initialization when using a custom datadir location
Browse files Browse the repository at this point in the history
  • Loading branch information
desalvo committed Jan 30, 2014
1 parent 6d1a074 commit 67b88d0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Modulefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name 'desalvo-percona'
version '0.1.4'
version '0.1.5'
source 'https://github.com/desalvo/puppet-percona'
author 'desalvo'
license 'Apache License, Version 2.0'
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ Contributors
Release Notes
-------------

**0.1.5**

* Fixed mysql db initialization when using a custom datadir location

**0.1.4**

* Better handling of the datadir parameter
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
exec { "init percona db":
command => "mysql_install_db",
path => [ '/bin', '/usr/bin' ],
unless => "test -f $percona::params::percona_host_table",
unless => "test -f ${datadir}/${percona::params::percona_host_table}",
require => [File[$percona::params::percona_conf],File[$datadir],Package[$percona::params::percona_server_packages]],
timeout => 0
}
Expand Down
4 changes: 2 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
'RedHat': {
$percona_conf = '/etc/my.cnf'
$galera_provider = '/usr/lib64/libgalera_smm.so'
$percona_host_table = "/var/lib/mysql/mysql/host.frm"
$percona_host_table = "mysql/host.frm"
$percona_compat_packages = [
'Percona-Server-shared-compat',
]
Expand Down Expand Up @@ -39,7 +39,7 @@
'Debian': {
$percona_conf = '/etc/mysql/my.cnf'
$galera_provider = '/usr/lib/libgalera_smm.so'
$percona_host_table = "/var/lib/mysql/mysql/host.frm"
$percona_host_table = "mysql/host.frm"
case $mysql_version {
'5.6': {
$percona_galera_package = 'percona-xtradb-cluster-galera-3.x'
Expand Down

0 comments on commit 67b88d0

Please # to comment.