From 7d2ab4e921dd7653d47f645cbd9c6fb596709954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Jagodzi=C5=84ski?= Date: Mon, 23 May 2016 12:17:09 +0200 Subject: [PATCH] Find MySQL 5.5 installation on CentOS #832 MySQL from CentOS SCL repository is installed in different location. You should also check for binaries in this location. Without this change puppet returns error like: Could not find a suitable provider for mysql_datadir --- lib/puppet/provider/mysql_datadir/mysql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/mysql_datadir/mysql.rb b/lib/puppet/provider/mysql_datadir/mysql.rb index 3a31a11..2a44c73 100644 --- a/lib/puppet/provider/mysql_datadir/mysql.rb +++ b/lib/puppet/provider/mysql_datadir/mysql.rb @@ -6,7 +6,7 @@ Puppet::Type.type(:mysql_datadir).provide(:mysql, :parent => Puppet::Provider::M initvars # Make sure we find mysqld on CentOS and mysql_install_db on Gentoo - ENV['PATH']=ENV['PATH'] + ':/usr/libexec:/usr/share/mysql/scripts' + ENV['PATH']=ENV['PATH'] + ':/usr/libexec:/usr/share/mysql/scripts:/opt/rh/mysql55/root/usr/bin:/opt/rh/mysql55/root/usr/libexec' commands :mysqld => 'mysqld' commands :mysql_install_db => 'mysql_install_db'