File pacemaker-resources-default-globally_unique.patch of Package pacemaker.3577

commit 610cf0eee833759d5184f1eec2f4d644802de2f4
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Wed Mar 2 09:06:03 2016 -0600

    Fix: resources: match agents' default for globally_unique to pacemaker's
    
    Pacemaker should always supply the value (even if default), so the agents'
    default only matters for manual invocations, but it is still a good idea
    to keep the default behavior consistent.

diff --git a/extra/resources/Dummy b/extra/resources/Dummy
index 40254df..9d11e7d 100644
--- a/extra/resources/Dummy
+++ b/extra/resources/Dummy
@@ -184,7 +184,7 @@ dummy_validate() {
 : ${OCF_RESKEY_fake=dummy}
 : ${OCF_RESKEY_op_sleep=0}
 : ${OCF_RESKEY_CRM_meta_interval=0}
-: ${OCF_RESKEY_CRM_meta_globally_unique:="true"}
+: ${OCF_RESKEY_CRM_meta_globally_unique:="false"}
 
 if [ "x$OCF_RESKEY_state" = "x" ]; then
     if [ ${OCF_RESKEY_CRM_meta_globally_unique} = "false" ]; then
diff --git a/extra/resources/HealthCPU b/extra/resources/HealthCPU
index 7aa44e7..32a10ad 100644
--- a/extra/resources/HealthCPU
+++ b/extra/resources/HealthCPU
@@ -180,7 +180,7 @@ dummy_validate() {
 }
 
 : ${OCF_RESKEY_CRM_meta_interval=0}
-: ${OCF_RESKEY_CRM_meta_globally_unique:="true"}
+: ${OCF_RESKEY_CRM_meta_globally_unique:="false"}
 
 if [ "x$OCF_RESKEY_state" = "x" ]; then
     if [ ${OCF_RESKEY_CRM_meta_globally_unique} = "false" ]; then
diff --git a/extra/resources/Stateful b/extra/resources/Stateful
index 25bc4dc..23526c9 100644
--- a/extra/resources/Stateful
+++ b/extra/resources/Stateful
@@ -184,7 +184,7 @@ stateful_validate() {
 : ${master_score=10}
 
 : ${OCF_RESKEY_CRM_meta_interval=0}
-: ${OCF_RESKEY_CRM_meta_globally_unique:="true"}
+: ${OCF_RESKEY_CRM_meta_globally_unique:="false"}
 
 if [ "x$OCF_RESKEY_state" = "x" ]; then
     if [ ${OCF_RESKEY_CRM_meta_globally_unique} = "false" ]; then
diff --git a/extra/resources/ping b/extra/resources/ping
index 43316aa..f3bc53a 100755
--- a/extra/resources/ping
+++ b/extra/resources/ping
@@ -317,7 +317,7 @@ ping_update() {
 : ${OCF_RESKEY_use_fping:="1"}
 
 : ${OCF_RESKEY_CRM_meta_timeout:="20000"}
-: ${OCF_RESKEY_CRM_meta_globally_unique:="true"}
+: ${OCF_RESKEY_CRM_meta_globally_unique:="false"}
 
 integer=`echo ${OCF_RESKEY_timeout} | egrep -o '[0-9]*'`
 case ${OCF_RESKEY_timeout} in
openSUSE Build Service is sponsored by