This commit is contained in:
2019-07-04 20:58:20 -04:00
parent 23a4e98668
commit 47caaa7a0a
10 changed files with 589 additions and 577 deletions

View File

@ -3,6 +3,6 @@ cookbook_file '/tmp/datacom_abc.sql' do
end
execute 'Seed MySQL DB' do
command "mysql -h localhost -u\"#{node['db']['user']}\" -p\"#{node['db']['password']}\" \"#{node['db']['name']}\" < /tmp/datacom_abc.sql"
command "mysql -h localhost -uroot -p\"#{node['db']['root_password']}\" \"#{node['db']['name']}\" < /tmp/datacom_abc.sql"
not_if "$(mysql -h 127.0.0.1 -uroot -p\"#{node['db']['root_password']}\" \"#{node['db']['name']}\" -sse \"select count(*) from test_dec;\") -gt 0"
end