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
This commit is contained in:
Jarosław Jagodziński 2016-05-23 12:17:09 +02:00
parent e71e712f31
commit 7d2ab4e921

View file

@ -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'