Send Linux-ha-cvs mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Linux-ha-cvs digest..."
Today's Topics:
1. Linux-HA CVS: tools by andrew from
([email protected])
2. Linux-HA CVS: tools by andrew from
([email protected])
----------------------------------------------------------------------
Message: 1
Date: Sat, 7 Jan 2006 15:25:13 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: tools by andrew from
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
linux-ha CVS committal
Author : andrew
Host :
Project : linux-ha
Module : tools
Dir : linux-ha/tools
Modified Files:
haresources2cib.py.in
Log Message:
Set a default for all CIB options
Create CIB options with a loop for maintainability
Use the non-deprecated location for cluster options
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/tools/haresources2cib.py.in,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- haresources2cib.py.in 15 Dec 2005 02:20:01 -0000 1.2
+++ haresources2cib.py.in 7 Jan 2006 22:25:12 -0000 1.3
@@ -37,6 +37,19 @@
"db2" :{"params":["instance"],"time":["120s","60s"]}
}
+config_defaults = [
+ "symmetric_cluster=true",
+ "no_quorum_policy=stop",
+ "default_resource_stickiness=0",
+ "stonith_enabled=false",
+ "stop_orphan_resources=false",
+ "stop_orphan_actions=true",
+ "remove_after_stop=false",
+ "short_resource_names=true",
+ "transition_idle_timeout=5min",
+ "is_managed_default=true",
+]
+
def create_cib() :
doc = xml.dom.minidom.Document()
cib = doc.createElement("cib")
@@ -48,23 +61,20 @@
crm_config = doc.createElement("crm_config")
configuration.appendChild(crm_config)
- nvpair = doc.createElement("nvpair")
- crm_config.appendChild(nvpair)
- nvpair.setAttribute("id","transition_idle_timeout")
- nvpair.setAttribute("name","transition_idle_timeout")
- nvpair.setAttribute("value","120s")
-
- nvpair = doc.createElement("nvpair")
- crm_config.appendChild(nvpair)
- nvpair.setAttribute("id","symmetric_cluster")
- nvpair.setAttribute("name","symmetric_cluster")
- nvpair.setAttribute("value","true")
-
- nvpair = doc.createElement("nvpair")
- crm_config.appendChild(nvpair)
- nvpair.setAttribute("id","no_quorum_policy")
- nvpair.setAttribute("name","no_quorum_policy")
- nvpair.setAttribute("value","stop")
+ option_set = doc.createElement("cluster_property_set")
+ option_set.setAttribute("id","deafult")
+ crm_config.appendChild(option_set)
+
+ attr_list = doc.createElement("attributes")
+ option_set.appendChild(attr_list)
+
+ for option in config_defaults:
+ option_details = string.split(option, '=')
+ nvpair = doc.createElement("nvpair")
+ attr_list.appendChild(nvpair)
+ nvpair.setAttribute("id", option_details[0])
+ nvpair.setAttribute("name", option_details[0])
+ nvpair.setAttribute("value", option_details[1])
configuration.appendChild(doc.createElement("nodes"))
resources = doc.createElement("resources")
------------------------------
Message: 2
Date: Sat, 7 Jan 2006 15:26:53 -0700 (MST)
From: [email protected]
Subject: [Linux-ha-cvs] Linux-HA CVS: tools by andrew from
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
linux-ha CVS committal
Author : andrew
Host :
Project : linux-ha
Module : tools
Dir : linux-ha/tools
Modified Files:
.cvsignore
Log Message:
update with new file
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/tools/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- .cvsignore 11 Jan 2005 09:58:33 -0000 1.3
+++ .cvsignore 7 Jan 2006 22:26:52 -0000 1.4
@@ -11,3 +11,5 @@
parser-messages
MISC_ERRORS
ccdv
+haresources2cib.py
+
------------------------------
_______________________________________________
Linux-ha-cvs mailing list
[email protected]
http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
End of Linux-ha-cvs Digest, Vol 26, Issue 6
*******************************************