conga/luci cluster/form-macros cluster/resourc ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-02-16 02:06:11
Modified files:
luci/cluster : form-macros resource-form-macros
resource_form_handlers.js
luci/site/luci/Extensions: ModelBuilder.py cluster_adapters.py
Added files:
luci/site/luci/Extensions: LVM.py
Log message:
Support for the new lvm rgmanager script
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&r1=1.189&r2=1.190
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource-form-macros.diff?cvsroot=cluster&r1=1.32&r2=1.33
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/resource_form_handlers.js.diff?cvsroot=cluster&r1=1.31&r2=1.32
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LVM.py.diff?cvsroot=cluster&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ModelBuilder.py.diff?cvsroot=cluster&r1=1.24&r2=1.25
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.239&r2=1.240
luci/cluster/form-macros +4 -0
@@ -4306,6 +4306,10 @@ <div metal:use-macro="here/resource-form-macros/macros/mysql_macro" /> </tal:block> + <tal:block tal:condition="python: type == 'lvm'"> + <div metal:use-macro="here/resource-form-macros/macros/lvm_macro" /> + </tal:block> + <tal:block tal:condition="python: type == 'postgres-8'"> <div metal:use-macro="here/resource-form-macros/macros/postgres-8_macro" /> </tal:block>
luci/cluster/resource-form-macros +108 -29
290 lines not on this page · raw message
luci/cluster/resource_form_handlers.js +6 -0
@@ -118,6 +118,11 @@ return (errors); } +function validate_lvm(form) { + var errors = new Array(); + return (errors); +} + function validate_openldap(form) { var errors = new Array(); return (errors);
@@ -258,6 +263,7 @@ form_validators['postgres-8'] = validate_postgres8; form_validators['openldap'] = validate_openldap; form_validators['mysql'] = validate_mysql; +form_validators['lvm'] = validate_lvm; function check_form(form) { var valfn = form_validators[form.type.value];
/cvs/cluster/conga/luci/site/luci/Extensions/LVM.py,v --> standard output revision 1.1
- renamed from luci/site/luci/Extensions/LVM.py +15 -0
@@ -0,0 +1,15 @@ +import string +from TagObject import TagObject +from BaseResource import BaseResource + +import gettext +_ = gettext.gettext + +TAG_NAME = "lvm" +RESOURCE_TYPE = _("LVM") + +class LVM(BaseResource): + def __init__(self): + BaseResource.__init__(self) + self.TAG_NAME = TAG_NAME + self.resource_type = RESOURCE_TYPE
luci/site/luci/Extensions/ModelBuilder.py +12 -0
@@ -26,6 +26,12 @@ from NFSExport import NFSExport from Fs import Fs from Samba import Samba +from Apache import Apache +from LVM import LVM +from MySQL import MySQL +from OpenLDAP import OpenLDAP +from Postgres8 import Postgres8 +from Tomcat5 import Tomcat5 from Multicast import Multicast from FenceDaemon import FenceDaemon from FenceXVMd import FenceXVMd
@@ -67,6 +73,12 @@ 'ip':Ip, 'fs':Fs, 'smb':Samba, + 'apache':Apache, + 'lvm':LVM, + 'mysql':MySQL, + 'openldap':OpenLDAP, + 'postgres-8':Postgres8, + 'tomcat-5':Tomcat5, 'fence_daemon':FenceDaemon, 'multicast':Multicast, 'clusterfs':Clusterfs,
luci/site/luci/Extensions/cluster_adapters.py +86 -10
149 lines not on this page · raw message