Set pacemaker default resource-stickiness
authorJiri Stransky <jistr@redhat.com>
Mon, 31 Aug 2015 14:34:22 +0000 (16:34 +0200)
committerJiri Stransky <jistr@redhat.com>
Wed, 2 Sep 2015 12:10:56 +0000 (14:10 +0200)
This is required for HA to work correctly.

Change-Id: I9faa8fd7bbbac67de5c468ab6fc4edb2260dffe7
Depends-On: https://github.com/redhat-openstack/puppet-pacemaker/pull/61

puppet/hieradata/controller.yaml
puppet/manifests/overcloud_controller_pacemaker.pp

index 1ae076d..e84a037 100644 (file)
@@ -91,6 +91,8 @@ heat::instance_user: ''
 # pacemaker
 pacemaker::corosync::cluster_name: 'tripleo_cluster'
 pacemaker::corosync::manage_fw: false
+pacemaker::resource_defaults::defaults:
+  resource-stickiness: { value: INFINITY }
 
 # horizon
 horizon::allowed_hosts: '*'
index cfd30f1..006f60f 100644 (file)
@@ -177,6 +177,8 @@ if hiera('step') >= 2 {
 
   if $pacemaker_master {
 
+    include pacemaker::resource_defaults
+
     # FIXME: we should not have to access tripleo::loadbalancer class
     # parameters here to configure pacemaker VIPs. The configuration
     # of pacemaker VIPs could move into puppet-tripleo or we should