pacemaker: create Mysql_user once Galera is ready (puppet4)
Puppet 4 ordering make things more strict in catalog, which is good.
Resources have to be orchestrated or Puppet will take them in the order
they are found in catalog.
This patch makes sure we create MySQL users only when Galera is actually
ready.
Closes-Bug: #1645787
Change-Id: I536a1a128c3a7eca49bcc4f34a1307bcd60b029e
(cherry picked from commit f101ee540a
)
This commit is contained in:
parent
b64f49048c
commit
2576acbb89
|
@ -155,9 +155,10 @@ class tripleo::profile::pacemaker::database::mysql (
|
|||
user => 'clustercheck@localhost',
|
||||
}
|
||||
|
||||
# We create databases for services at step 2 as well. This ensures
|
||||
# We create databases and users for services at step 2 as well. This ensures
|
||||
# Galara is up before those get created
|
||||
Exec['galera-ready'] -> Mysql_database<||>
|
||||
Exec['galera-ready'] -> Mysql_user<||>
|
||||
|
||||
}
|
||||
# This step is to create a sysconfig clustercheck file with the root user and empty password
|
||||
|
|
Loading…
Reference in New Issue