Remove haproxy galera monitoring user

Prior to kilo, we created a static 'haproxy' MySQL user for haproxy.
In kilo and onwards, we now have a user variable called
galera_monitoring_user which defaults to monitoring.  This commit
updates scripts/run-upgrade.sh to remove the old haproxy user to
ensure we don't have a defunct MySQL user lying about.

Change-Id: I071596c4c6d881d5304fc49a7cf752d5489ee19b
Closes-Bug: #1472673
This commit is contained in:
Matt Thompson 2015-07-08 17:00:25 +01:00
parent d339da3103
commit c51aaaccac

View File

@ -532,6 +532,9 @@ pushd playbooks
-m "file" \
-a "path=/root/.pip/links.d/rpc_release.link state=absent" || true
# The galera monitoring user now defaults to 'monitoring', cleaning up old 'haproxy' user.
ansible "galera_all[0]" -m "mysql_user" -a "name=haproxy host='%' password='' priv='*.*:USAGE' state=absent"
# Run the fix adjustments play.
openstack-ansible /tmp/fix_minor_adjustments.yml
# Remove fix container adjustments play