Make this work in SLES as well As RedHat.

This commit is contained in:
Ashley Penney 2014-02-24 20:39:08 +00:00
parent ac991e8e41
commit 6a93d67bb8

View file

@ -17,7 +17,7 @@ describe 'mysql::server::root_password class' do
it 'deletes all databases' do
case fact('osfamily')
when 'RedHat'
when 'RedHat', 'SuSE'
shell('rm -rf `grep datadir /etc/my.cnf | cut -d" " -f 3`/*')
when 'Debian'
shell('rm -rf `grep datadir /etc/mysql/my.cnf | cut -d" " -f 3`/*')