pacemaker/mysql: wait step 2 to remove default accounts
authorEmilien Macchi <emilien@redhat.com>
Thu, 13 Oct 2016 15:21:02 +0000 (11:21 -0400)
committerEmilien Macchi <emilien@redhat.com>
Thu, 13 Oct 2016 15:21:02 +0000 (11:21 -0400)
commit381e59f6e15ab4cb5316e0be3ba831fe61b318d2
tree5e1c3b9d8f25bb17e8b5a28cf4ebb2940482b8a4
parentc4e7d4dc52b9351529fac6c4979aad5fa2a4cf1e
pacemaker/mysql: wait step 2 to remove default accounts

remove_default_accounts is a mysql::server parameter that, set to True,
will execute some MySQL commands to cleanup MySQL defaults accounts
created by packaging.
In order to successfully run the commands, we need MySQL up and running,
which is not the case at step 1 but at step 2.

This patch make sure we run the commands at step 2 on pacemaker master
only.

No change for scenarios without Pacemaker.

Change-Id: Ifad3cb40fd958d7ea606b9cd2ba4c8ec22a8e94e
Closes-Bug: #1633113
manifests/profile/pacemaker/database/mysql.pp