Setup zaqar database user

This sets up the Zaqar user for the management database properly.

Change-Id: I1f7c9c7e028a6aa51d0f943e73e8f991ec242337
This commit is contained in:
Thomas Herve
2017-04-11 10:55:02 +02:00
parent 6fd572dae4
commit fc2511edda

View File

@@ -581,6 +581,15 @@ if str2bool(hiera('enable_validations', true)) {
}
include ::zaqar
$zaqar_dsn = split(hiera('zaqar::management::sqlalchemy::uri'), '[@:/?]')
class { '::zaqar::db::mysql':
user => $zaqar_dsn[3],
password => $zaqar_dsn[4],
host => $zaqar_dsn[5],
dbname => $zaqar_dsn[6],
allowed_hosts => $allowed_hosts,
}
include ::zaqar::db::sync
include ::zaqar::management::sqlalchemy
include ::zaqar::messaging::swift
include ::zaqar::keystone::auth