module MysqlCookbook module Helpers module Fedora def include_dir include_dir = '/etc/my.cnf.d' include_dir end def lc_messages_dir lc_messages_dir = nil lc_messages_dir end def pid_file pid_file = '/var/run/mysqld/mysqld.pid' pid_file end def prefix_dir prefix_dir = '/usr' prefix_dir end def run_dir run_dir = '/var/run/mysqld' run_dir end def pass_string if new_resource.parsed_server_root_password.empty? pass_string = '' else pass_string = '-p' + Shellwords.escape(new_resource.parsed_server_root_password) end pass_string = '-p' + ::File.open('/etc/.mysql_root').read.chomp if ::File.exist?('/etc/.mysql_root') pass_string end def socket_file socket_file = '/var/lib/mysql/mysql.sock' socket_file end end end end