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
This commit is contained in:
Clayton O'Neill 2015-01-16 16:02:01 +00:00
parent f2b115c566
commit 290d711c45
2 changed files with 2 additions and 1 deletions

View File

@ -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' |>
}

View File

@ -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' |>
}