Browse Source

Merge "HA: drop spurious mysql user on stack deploy" into stable/train

changes/66/716166/1
Zuul 3 months ago
committed by Gerrit Code Review
parent
commit
71977985e3
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      deployment/database/mysql-pacemaker-puppet.yaml

+ 1
- 0
deployment/database/mysql-pacemaker-puppet.yaml View File

@@ -240,6 +240,7 @@ outputs:
- 'timeout ${DB_MAX_TIMEOUT} /bin/bash -c ''until mysqladmin -uroot -p"${DB_ROOT_PASSWORD}" ping 2>/dev/null; do sleep 1; done'''
- 'mysql -uroot -p"${DB_ROOT_PASSWORD}" -e "CREATE USER ''clustercheck''@''localhost'' IDENTIFIED BY ''${DB_CLUSTERCHECK_PASSWORD}'';"'
- 'mysql -uroot -p"${DB_ROOT_PASSWORD}" -e "GRANT PROCESS ON *.* TO ''clustercheck''@''localhost'' WITH GRANT OPTION;"'
- 'mysql -uroot -p"${DB_ROOT_PASSWORD}" -e "DELETE FROM mysql.user WHERE user = ''root'' AND host NOT IN (''%'',''localhost'');"'
- 'timeout ${DB_MAX_TIMEOUT} mysqladmin -uroot -p"${DB_ROOT_PASSWORD}" shutdown'
volumes: &mysql_volumes
list_concat:


Loading…
Cancel
Save