Add Vitrage database configuration

The Vitrage graph service fails to start up when there is no configured
database.  This patch addresses this issue by configuring the database
for it.

Change-Id: I2a5ae82bff051ac2a30a3d5447bb0b4b86dd1920
This commit is contained in:
Mohammed Naser 2017-11-15 12:57:59 -05:00
parent c40fe8dc24
commit 80c43353c6
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,13 @@ class openstack_integration::vitrage {
Exec['update-ca-certificates'] ~> Service['httpd']
}
class { '::vitrage::db::mysql':
password => 'vitrage',
}
class { '::vitrage::db':
database_connection => 'mysql+pymysql://vitrage:vitrage@127.0.0.1/vitrage?charset=utf8'
}
class { '::vitrage':
# TODO(ansmith): separate transports when bug/1711716 closed