From 80c43353c6fa7b7c1b7b5e1a2f74943701254e7a Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Wed, 15 Nov 2017 12:57:59 -0500 Subject: [PATCH] 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 --- manifests/vitrage.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manifests/vitrage.pp b/manifests/vitrage.pp index 640e83084..b2e2baf2c 100644 --- a/manifests/vitrage.pp +++ b/manifests/vitrage.pp @@ -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