Skip to contentSkip to conversation

conga/luci cluster/cluster_svc-macros cluster/ ...

Cluster-devel [email protected] 1 participant 1 message Mar 6, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2008-03-06 21:27:16

Modified files:
luci/cluster : cluster_svc-macros resource-form-macros
resource_form_handlers.js
luci/site/luci/Extensions: ResourceHandler.py luci/site/luci/Extensions/ClusterModel: ModelBuilder.py

Log message:
- UI support for the Oracle resource agent
- Fix a bug that caused Sybase resources to not be displayed

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/cluster_svc-macros.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&r1=1.48&r2=1.49
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource_form_handlers.js.diff?cvsroot=cluster&r1=1.44&r2=1.45
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ResourceHandler.py.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ClusterModel/ModelBuilder.py.diff?cvsroot=cluster&r1=1.16&r2=1.17

luci/cluster/cluster_svc-macros +3 -0
@@ -620,6 +620,9 @@
 	<tal:block tal:condition="python: type == 'ASEHAagent'">
 		<div metal:use-macro="here/resource-form-macros/macros/ASEHAagent_macro" />
 	</tal:block>
+	<tal:block tal:condition="python: type == 'oracledb'">
+		<div metal:use-macro="here/resource-form-macros/macros/oracledb_macro" />
+	</tal:block>
 </div>
 
 <div metal:define-macro="service-config-head-macro" tal:omit-tag="">
luci/cluster/resource-form-macros +86 -1

124 lines not on this page · raw message

luci/cluster/resource_form_handlers.js +6 -0
@@ -255,6 +255,11 @@
 	return (errors);
 }
 
+function validate_oracle(form) {
+	var errors = new Array();
+	return (errors);
+}
+
 function validate_sapdatabase(form) {
 	var errors = new Array();
 
@@ -301,6 +306,7 @@
 form_validators['SAPInstance'] = validate_sapinstance;
 form_validators['SAPDatabase'] = validate_sapdatabase;
 form_validators['ASEHAagent'] = validate_sybase;
+form_validators['oracledb'] = validate_oracle;
 
 function check_form(form) {
 	var valfn = form_validators[form.type.value];
luci/site/luci/Extensions/ResourceHandler.py +4 -1
@@ -786,10 +786,13 @@
 	params = (
 		('user', 'Oracle User Name', True, None),
 		('home', 'Oracle Home Directory', True, None),
-		('type', 'Oracle Installation Type', True, None),
+		#('type', 'Oracle Installation Type', True, None),
 		('vhost', 'Virtual Hostname', False, None)
 	)
 	errors = config_resource(params, res, rname, form)
+	dbtype = res.getAttribute('type')
+	if not dbtype:
+		res.addAttribute('type', '10g')
 	return errors
 
 resource_table = {
luci/site/luci/Extensions/ClusterModel/ModelBuilder.py +4 -0
@@ -33,6 +33,8 @@
 from Tomcat5 import Tomcat5
 from SAPDatabase import SAPDatabase
 from SAPInstance import SAPInstance
+from SybaseASE import SybaseASE 
+from OracleDB import OracleDB
 from Multicast import Multicast
 from FenceDaemon import FenceDaemon
 from FenceXVMd import FenceXVMd
@@ -93,6 +95,8 @@
              'nfsclient': NFSClient,
              'SAPDatabase': SAPDatabase,
              'SAPInstance': SAPInstance,
+             'ASEHAagent': SybaseASE,
+             'oracledb': OracleDB,
              'device': Device }