Move gnocchi clustercheck to step 2
authorCarlos Camacho <ccamacho@redhat.com>
Mon, 11 Jul 2016 11:02:19 +0000 (13:02 +0200)
committerCarlos Camacho <ccamacho@redhat.com>
Tue, 12 Jul 2016 15:26:49 +0000 (17:26 +0200)
As not having guarantee of being installed on same node, the dbsync
will be on step 3 and the clustercheck on 2.

Change-Id: Id728aae79442c45ab48fe0914c065f1807e8890d

manifests/profile/pacemaker/gnocchi.pp

index ad566b1..a6d472c 100644 (file)
@@ -56,15 +56,18 @@ class tripleo::profile::pacemaker::gnocchi (
     $pacemaker_master = false
   }
 
-  if $step >= 3 and $sync_db {
-    include ::gnocchi
-    include ::gnocchi::config
-    include ::gnocchi::client
+  if $step >= 2 and $pacemaker_master {
     if $gnocchi_indexer_backend == 'mysql' {
       class { '::gnocchi::db::mysql':
         require => Exec['galera-ready'],
       }
     }
+  }
+
+  if $step >= 3 and $sync_db {
+    include ::gnocchi
+    include ::gnocchi::config
+    include ::gnocchi::client
     include ::gnocchi::db::sync
   }