Merge pull request #34 from cyplenochek/master
solve problem "Access denied for user 'root'@'localhost' "
diff --git a/.kitchen.travis.yml b/.kitchen.travis.yml
index f847543..08b3a11 100644
--- a/.kitchen.travis.yml
+++ b/.kitchen.travis.yml
@@ -3,4 +3,4 @@
- name: <%= ENV['SUITE'] %>
provisioner:
pillars-from-files:
- neutron.sls: tests/pillar/<%= ENV['SUITE'] %>.sls
+ galera.sls: tests/pillar/<%= ENV['SUITE'] %>.sls
diff --git a/galera/files/init_bootstrap.sh b/galera/files/init_bootstrap.sh
index 4683d1a..917c4f0 100644
--- a/galera/files/init_bootstrap.sh
+++ b/galera/files/init_bootstrap.sh
@@ -7,7 +7,7 @@
while [ $counter -gt 0 ]
do
- mysql -u root -e"quit"
+ mysql -u root -e"quit" || mysql -u {{ service.admin.user }} -p{{ service.admin.password }} -e"quit"
if [[ $? -eq 0 ]]; then
echo "Sucessfully connected to the MySQL service ($retries retries)."
exit 0