From 290d711c45df582f57bc63adfb6002d912ae1bb8 Mon Sep 17 00:00:00 2001 From: Clayton O'Neill Date: Fri, 16 Jan 2015 16:02:01 +0000 Subject: [PATCH] Ensure DB is provisioned before db-sync This adds a dependency to ensure that the MySQL database is created before attempting to run the neutron db-sync. Change-Id: Ife7b6829f70d9fc9bd25419d45f45e86ff80b4fb --- manifests/db/mysql.pp | 1 + manifests/db/postgresql.pp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/db/mysql.pp b/manifests/db/mysql.pp index 8ff33ba04..0d8b90bf8 100644 --- a/manifests/db/mysql.pp +++ b/manifests/db/mysql.pp @@ -58,4 +58,5 @@ class neutron::db::mysql ( allowed_hosts => $allowed_hosts, } ::Openstacklib::Db::Mysql['neutron'] ~> Service <| title == 'neutron-server' |> + ::Openstacklib::Db::Mysql['neutron'] ~> Exec <| title == 'neutron-db-sync' |> } diff --git a/manifests/db/postgresql.pp b/manifests/db/postgresql.pp index 3f113da2e..4e20030e1 100644 --- a/manifests/db/postgresql.pp +++ b/manifests/db/postgresql.pp @@ -41,5 +41,5 @@ class neutron::db::postgresql( } ::Openstacklib::Db::Postgresql['neutron'] ~> Service <| title == 'neutron-server' |> - + ::Openstacklib::Db::Postgresql['neutron'] ~> Exec <| title == 'neutron-db-sync' |> }