Browse Source

Merge pull request #34 from cyplenochek/master

solve problem "Access denied for user 'root'@'localhost' "
pull/37/head
Petr Michalec 7 years ago
parent
commit
e950ac4545
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      .kitchen.travis.yml
  2. +1
    -1
      galera/files/init_bootstrap.sh

+ 1
- 1
.kitchen.travis.yml View File

- name: <%= ENV['SUITE'] %> - name: <%= ENV['SUITE'] %>
provisioner: provisioner:
pillars-from-files: pillars-from-files:
neutron.sls: tests/pillar/<%= ENV['SUITE'] %>.sls
galera.sls: tests/pillar/<%= ENV['SUITE'] %>.sls

+ 1
- 1
galera/files/init_bootstrap.sh View File



while [ $counter -gt 0 ] while [ $counter -gt 0 ]
do 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 if [[ $? -eq 0 ]]; then
echo "Sucessfully connected to the MySQL service ($retries retries)." echo "Sucessfully connected to the MySQL service ($retries retries)."
exit 0 exit 0

Loading…
Cancel
Save