Deploy nova::db classes in api profile
authorEmilien Macchi <emilien@redhat.com>
Mon, 6 Jun 2016 16:26:23 +0000 (12:26 -0400)
committerEmilien Macchi <emilien@redhat.com>
Fri, 17 Jun 2016 21:29:12 +0000 (21:29 +0000)
Move nova::db classes from THT to puppet-tripleo in Nova API profile.

Implements: blueprint refactor-puppet-manifests
Change-Id: I4fc3cb822822adc1c58b2cfa2de8584a73fa6427

manifests/profile/base/nova/api.pp

index cb8d3f2..bd4055b 100644 (file)
@@ -33,6 +33,13 @@ class tripleo::profile::base::nova::api (
 ) {
 
   include ::tripleo::profile::base::nova
+
+  if $step >= 2 and $sync_db {
+    include ::nova::db::mysql
+    include ::nova::db::mysql_api
+    Exec<| title == 'galera-ready'|> -> Anchor['nova::db::begin']
+  }
+
   if $step >= 4 or ($step >= 3 and $sync_db) {
     class { '::nova::api':
       sync_db     => $sync_db,