Move NTP and Memacache respectively into step 1 and step 2
authorGiulio Fidente <gfidente@redhat.com>
Mon, 18 May 2015 15:44:57 +0000 (11:44 -0400)
committerGiulio Fidente <gfidente@redhat.com>
Mon, 18 May 2015 15:47:53 +0000 (11:47 -0400)
NTP synchronization is moved to to step 1 where initial Pacemaker
configuration is performed.

Memacached is moved to step 2 to make sure it is up before the
OpenStack services are started.

Change-Id: I84121a687ee5ddb522239ecefd4d1d76c2f910b5

puppet/manifests/overcloud_controller_pacemaker.pp

index ea2d210..9f266b6 100644 (file)
@@ -37,6 +37,10 @@ if $::hostname == downcase(hiera('bootstrap_nodeid')) {
 
 if hiera('step') >= 1 {
 
+  if count(hiera('ntp::servers')) > 0 {
+    include ::ntp
+  }
+
   $controller_node_ips = split(hiera('controller_node_ips'), ',')
   $controller_node_names = split(downcase(hiera('controller_node_names')), ',')
   class { '::tripleo::loadbalancer' :
@@ -163,10 +167,6 @@ if hiera('step') >= 2 {
     }
   }
 
-  if count(hiera('ntp::servers')) > 0 {
-    include ::ntp
-  }
-
   # MongoDB
   if downcase(hiera('ceilometer_backend')) == 'mongodb' {
     $mongo_node_ips = split(hiera('mongo_node_ips'), ',')
@@ -373,6 +373,9 @@ MYSQL_HOST=localhost\n",
     include ::ceph::profile::osd
   }
 
+  # Memcached
+  include ::memcached
+
 } #END STEP 2
 
 if (hiera('step') >= 3 and $pacemaker_master) or hiera('step') >= 4 {
@@ -534,7 +537,6 @@ if (hiera('step') >= 3 and $pacemaker_master) or hiera('step') >= 4 {
   }
 
   # swift proxy
-  include ::memcached
   include ::swift::proxy
   include ::swift::proxy::proxy_logging
   include ::swift::proxy::healthcheck