debian/0000755000000000000000000000000011600142743007164 5ustar debian/source/0000755000000000000000000000000011527056025010471 5ustar debian/source/format0000644000000000000000000000001411527056025011677 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000540611527056025011131 0ustar This package was first debianized by Paolo Molaro on Wed, 17 Nov 1999 17:30:23 +0100. The original sources can be found at: http://linux-ha.org/wiki/Download Upstream Authors (from AUTHORS) and copyright holders: (c) 1998-2010 Akamatsu Hiroshi Alan Robertson Andrew Beekhof Christian Rishoj Daiki Matsuda David Lee Dejan Muhamedagic Dominik Klein Florian Haas Hideo Yamauchi Huang Zhen Jean-Francois Larvoire Keisuke MORI Lars Marowsky-Bree Matthew Soffen Michael Schwartzkopff Nakahira Kazutomo Philipp Kolmann Raoul Bhatia Ron Terry Sebastian Reitenbach Serge Dubrouski Simon Horman Stephan Berlet Takenaka Kazuhiro Xinwei Hu Code for the following pieces borrowed from code by: Tom Vogt (udp code) yuri volobuev (send_arp.c) 'Network UPS Tools' by Russell Kroll homepage: http://www.exploits.org/nut/ (Andreas Piesk borrowed code for APCSmart support) David C. Teigland wrote original meatware support for GFS stomith salz@pebbles.bbn.com - replacement scandir function Internet Software Consortium (bind) - replacement inet_pton() function NOTE: The work of everyone on this project is dearly appreciated. If you are not listed here but should be, please notify us! -------------------- Following components of this package are licensed under the GNU Lesser General Public License (LGPL): /etc/ha.d/shellfuncs /usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs /usr/lib/ocf/resource.d/heartbeat/.ocf-returncodes On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. -------------------- Following components of this package are licensed under the GNU General Public License version 2: /usr/lib/ocf/resource.d/heartbeat/scsi2reservation On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. -------------------- All other components of this are licensed under the GNU General Public License. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. debian/changelog0000644000000000000000000001434211600142743011042 0ustar cluster-agents (1:1.0.4-0ubuntu2) oneiric; urgency=low * Drop ldirectord binary package as it's now shipped with resource-agents. -- Andres Rodriguez Tue, 21 Jun 2011 12:23:13 -0400 cluster-agents (1:1.0.4-0ubuntu1) natty; urgency=low * Resync from debian unstable. * New upstream release (LP: #720304) - Fixes (LP: #689944, LP: #607461) * debian/patches: - CVE-2010-3389--bug598549.patch: Drop. Fixed upstream. - spelling-fixes.patch: Drop. Fixed upstream. - mysql.path: Refreshed. * debian/cluster-agents.{install,manpages}: Install new agents/manpages. * debian/cluster-agents.links: Add for compatibility with upstream changes. * debian/rules: Add dh_link to handle above added file. -- Andres Rodriguez Wed, 16 Feb 2011 18:22:03 -0500 cluster-agents (1:1.0.3-4) unstable; urgency=low * Use correct paths on Debian/GNU Linux in MySQL resource agent (Closes: #608274) * Add build dependency on python - Fixes build failure on both unstable and testing -- Simon Horman Fri, 04 Feb 2011 07:46:13 +0900 cluster-agents (1:1.0.3-3.1) unstable; urgency=low * Non-maintainer upload. * debian/patches - (CVE-*): New patch. Fix CVE-2010-3389 insecure library loading using LD_LIBRARY_PATH. (important, security; Closes: #598549). -- Jari Aalto Tue, 19 Oct 2010 13:35:00 +0300 cluster-agents (1:1.0.3-3) unstable; urgency=low * Add build dependency on docbook-xml. (Closes: #579623) -- Frederik Schüler Mon, 03 May 2010 20:00:49 +0200 cluster-agents (1:1.0.3-2) unstable; urgency=low * Adopting patch from Andres Rodriguez and actually include it. -- Martin Loschwitz Fri, 16 Apr 2010 06:44:40 +0000 cluster-agents (1:1.0.3-1) unstable; urgency=low * Update to new upstream version 1.0.3 * Include example configuration file provided by Michael Schwartzkopff (Closes: #577575) * Add default file for ldirectord and patch init file to use it (Closes: #577572, #577574) -- Martin Loschwitz Fri, 16 Apr 2010 05:57:16 +0000 cluster-agents (1:1.0.2+hg1712-1) unstable; urgency=low * New upstream Mercurial checkout * Prepare for unstable upload and actually do it * Include files added by upstream in cluster-agents -- Martin Loschwitz Tue, 30 Mar 2010 06:57:42 +0000 cluster-agents (1:1.0.2+hg1702-1) unstable; urgency=low * New package revision prepared for upload to unstable. * Update debian/copyright: list LGPL and GPL version 2 components. * ldirectord: check for a config file in initscript, and do nothing if it is not present. -- Frederik Schüler Fri, 26 Mar 2010 12:23:40 +0100 cluster-agents (1:1.0.2+hg1686-1) unstable; urgency=low * New package revision prepared for upload to unstable. * Install ldirector.8 manpage. * Drop unused lintian overrides. -- Frederik Schüler Fri, 12 Mar 2010 12:01:30 +0100 cluster-agents (1:1.0.2+hg1657-2) unstable; urgency=low [ Martin Loschwitz ] * Update the copyright-file to be more appropriate and up to date. -- Martin Loschwitz Wed, 03 Mar 2010 08:40:00 +0100 cluster-agents (1:1.0.2+hg1657-1) unstable; urgency=low [ Martin Loschwitz ] * New package revision prepared for upload to unstable. -- Martin Loschwitz Wed, 02 Mar 2010 14:21:00 +0100 cluster-agents (1:1.0.2-2) UNRELEASED; urgency=low [ Simon Horman ] * Add build dependency on xsltproc. * Use dh_installinit to install the debian ldirectord init script. * Do not pass --sourcedir to dh_install. [ Frederik Schüler ] * Use source version 3.0 instead of dpatch, drop dependency accordingly. * Bump standards version to 3.8.4, no changes needed. * Install lintian override file. * Install manpages. * Really clean up in clean target. * debian/control: drop duplicate Section: field. -- Frederik Schüler Fri, 26 Feb 2010 19:33:36 +0100 cluster-agents (1:1.0.2-1) unstable; urgency=low * New upstream release. -- Martin Loschwitz Wed, 03 Feb 2010 08:05:00 +0100 cluster-agents (1:1.0.2~rc2a+hg20100127-0test1) unstable; urgency=low * Incorporating a whole lot of changes done by Ante Karamatic to these packages; thank you very much indeed! * New upstream version taken from linux-ha.org repository * Fix dependencies for ldirectord and include var/lock/subsys/ldirectord -- Martin Loschwitz Wed, 27 Jan 2010 01:24:00 +0100 cluster-agents (1:1.0.2~rc2a-0ubuntu0ppa5) lucid; urgency=low * Add libglib2.0-dev to build-deps -- Ante Karamatic Tue, 05 Jan 2010 18:19:31 +0100 cluster-agents (1:1.0.2~rc2a-0ubuntu0ppa4) lucid; urgency=low * Add pkg-config to build-deps -- Ante Karamatic Tue, 05 Jan 2010 17:03:35 +0000 cluster-agents (1:1.0.2~rc2a-0ubuntu0ppa3) lucid; urgency=low * Fix typo in build-depends -- Ante Karamatic Tue, 05 Jan 2010 14:15:44 +0000 cluster-agents (1:1.0.2~rc2a-0ubuntu0ppa2) lucid; urgency=low * Added autoconf, automake and libtool to build-deps -- Ante Karamatic Mon, 04 Jan 2010 16:11:41 +0000 cluster-agents (1:1.0.2~rc2a-0ubuntu0ppa1) lucid; urgency=low * New upstream version * Added dpatch, docbook-xsl and xsltproc to build-deps * debian/patches/01_local_docbook: - use local docbook-xsl -- Ante Karamatic Mon, 04 Jan 2010 15:55:14 +0000 cluster-agents (1:1.0+hg20091103-1~bpo50+1) lenny-backports; urgency=low * Rebuild for lenny-backports. -- Martin Loschwitz Tue, 03 Nov 2009 12:10:06 +0000 cluster-agents (1:1.0+hg20091103-1) unstable; urgency=low * Updated upstream tarball to fetch some important updates -- Martin Loschwitz Tue, 03 Nov 2009 12:07:35 +0000 cluster-agents (1:1.0+hg20091012-1) unstable; urgency=low * New upstream version -- Martin Loschwitz Mon, 12 Oct 2009 17:10:00 +0200 cluster-agents (1:1.0+hg20090915-1) unstable; urgency=low * Initial release of packages for the cluster agents collection -- Martin Loschwitz Tue, 15 Sep 2009 09:56:16 +0000 debian/clean0000644000000000000000000000053711527056025010203 0ustar compile INSTALL install-sh aclocal.m4 Makefile.in config.guess config.sub missing configure depcomp ldirectord/Makefile.in ldirectord/init.d/Makefile.in ldirectord/OCF/Makefile.in ldirectord/logrotate.d/Makefile.in doc/Makefile.in include/config.h.in heartbeat/Makefile.in tools/Makefile.in libltdl.tar libtool.m4 ltdl.m4 autoconf automake autoheader debian/cluster-agents.links0000644000000000000000000000055011527056025013173 0ustar usr/lib/ocf/lib/heartbeat/ocf-shellfuncs usr/lib/ocf/resource.d/heartbeat/.ocf-shellfuncs usr/lib/ocf/lib/heartbeat/ocf-binaries usr/lib/ocf/resource.d/heartbeat/.ocf-binaries usr/lib/ocf/lib/heartbeat/ocf-directories usr/lib/ocf/resource.d/heartbeat/.ocf-directories usr/lib/ocf/lib/heartbeat/ocf-returncodes usr/lib/ocf/resource.d/heartbeat/.ocf-returncodes debian/ldirectord.install0000644000000000000000000000014611527056025012715 0ustar usr/sbin/ldirectord etc/ha.d/resource.d/ldirectord etc/logrotate.d/ldirectord etc/init.d/ldirectord debian/compat0000644000000000000000000000000211527056025010367 0ustar 7 debian/control0000644000000000000000000000417711600142547010602 0ustar Source: cluster-agents Section: admin Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian HA Maintainers Uploaders: Martin Loschwitz , Anibal Monsalve Salazar , Simon Horman , Frederik Schüler Build-Depends: libcluster-glue-dev, cluster-glue-dev, libnet1-dev, debhelper (>= 7), docbook-xsl, automake, autoconf, libtool, pkg-config, libglib2.0-dev, xsltproc, docbook-xml, python Standards-Version: 3.8.4 Homepage: http://hg.linux-ha.org/agents/ XS-Python-Version: current Package: cluster-agents Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, cluster-glue, python Replaces: heartbeat (<= 2.99.2+sles11r9-5), heartbeat-common (<= 2.99.2+sles11r9-5), libheartbeat2 (<= 2.99.2+sles11r9-5), ldirectord (<< 1.0.2~rc2a+hg20100127-0test1) Conflicts: heartbeat (<= 2.99.2+sles11r9-5), heartbeat-common (<= 2.99.2+sles11r9-5), libheartbeat2 (<= 2.99.2+sles11r9-5), ldirectord (<< 1.0.2~rc2a+hg20100127-0test1) Description: The reusable cluster components for Linux HA This package contains various reusable cluster components from the Linux HA project. Originally belonging to Heartbeat, they can and sometimes must be used with OpenAIS driven clusters as well. #Package: ldirectord #Priority: extra #Architecture: all #Depends: ${perl:Depends}, ${misc:Depends}, ipvsadm, libauthen-radius-perl, libcrypt-ssleay-perl, libdbi-perl, libdigest-hmac-perl, libdigest-md5-perl, libmail-pop3client-perl, libmailtools-perl, libnet-dns-perl, libnet-imap-simple-perl, libnet-imap-simple-ssl-perl, libnet-ldap-perl, libnet-perl, libwww-perl, libsocket6-perl #Recommends: rsyslog | system-log-daemon, logrotate #Conflicts: libpils0 (<< 2.0.8-3), libstonith0 (<< 2.0.8-3), stonith (<< 2.0.8-3) #XB-Python-Version: ${python:Versions} #Description: Monitors virtual services provided by LVS # ldirectord is a stand-alone daemon to monitor services of real # for virtual services provided by The Linux Virtual Server (LVS). # and works with Linux-HA's heartbeat package. debian/rules0000755000000000000000000000535011527056025010254 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) MAKEFLAGS += -j$(NUMJOBS) endif DTMP:=$(CURDIR)/debian/tmp RELEASE := $(shell dpkg-parsechangelog | awk '/^Version: / { print $$2 }') UPSTREAM := $(shell echo "$(RELEASE)" | sed 's/:\?\([0-9\.]\+\)-[0-9].*/\1/') configure-stamp: configure configure: dh_testdir test -x ./configure || ./autogen.sh ./configure --with-ocf-root=/usr/lib/ocf --with-initdir=/etc/init.d \ --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --mandir=/usr/share/man --libdir=/usr/lib --disable-fatal-warnings touch configure-stamp build: build-arch build-indep build-arch: build-arch-stamp build-arch-stamp: configure-stamp $(MAKE) touch $@ build-indep: build-indep-stamp build-indep-stamp: configure-stamp touch $@ clean: dh_testdir dh_testroot [ ! -f Makefile ] || $(MAKE) clean [ ! -f Makefile ] || $(MAKE) distclean dh_clean install: install-indep install-arch install-indep: install-arch: dh_testdir dh_testroot dh_prep -s $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp binary-common: dh_install --list-missing dh_testdir dh_testroot dh_installman dh_installdocs # install example configuration file mkdir -p $(CURDIR)/debian/ldirectord/usr/share/doc/ldirectord/examples/ cp -ax $(CURDIR)/debian/ldirectord.cf.ex $(CURDIR)/debian/ldirectord/usr/share/doc/ldirectord/examples/ldirectord.cf # install ldirectord default file mkdir -p $(CURDIR)/debian/ldirectord/etc/default/ cp -ax $(CURDIR)/debian/ldirectord.default $(CURDIR)/debian/ldirectord/etc/default/ldirectord dh_installchangelogs dh_link dh_installinit dh_lintian dh_strip dh_compress dh_fixperms dh_makeshlibs dh_perl dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture independant packages using the common target. binary-indep: build-indep install-indep $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build-arch install-arch $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure debian/ldirectord.manpages0000644000000000000000000000005411527056025013040 0ustar debian/tmp/usr/share/man/man8/ldirectord.8 debian/ldirectord.default0000644000000000000000000000017111527056025012671 0ustar # Set the following variable to define a default configuration # file for ldirectord. # CONFIG_FILE=/etc/ldirectord.cf debian/ldirectord.init0000644000000000000000000000207611527056025012216 0ustar #!/bin/sh # ### BEGIN INIT INFO # Short-Description: Monitor virtual services provided by LVS. # Provides: ldirectord # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO # # Author: Horms # # Debian init script for ldirectord # NAME=ldirectord DAEMON="/usr/sbin/$NAME" CONFIG="/etc/default/$NAME" test -x $DAEMON || exit 0 test -x /var/lock/subsys || mkdir -p /var/lock/subsys . /lib/lsb/init-functions CONFIG_FILE="" [ -f "$CONFIG" ] && . "$CONFIG" CONFIG_FILE="${CONFIG_FILE:=/etc/ldirectord.cf}" test -f ${CONFIG_FILE} RC=$? if [ $RC -ne 0 ] ; then log_warning_msg "No configuration file found, doing nothing." exit 0 fi case "$1" in start|stop|restart|try-restart|status|reload|force-reload) log_daemon_msg "Running $NAME" "$1" exec "$DAEMON" "$CONFIG_FILE" $1 RC=$? log_end_msg $RC exit $RC ;; *) echo "Usage: /etc/init.d/$NAME" \ "{start|stop|restart|try-restart|status|reload|force-reload}" >&2 exit 1 ;; esac debian/cluster-agents.install0000644000000000000000000000741311527056025013526 0ustar usr/lib/heartbeat/findif usr/lib/heartbeat/sfex_daemon usr/lib/heartbeat/send_arp usr/lib/ocf/resource.d/heartbeat/IPv6addr usr/lib/ocf/resource.d/heartbeat/ClusterMon usr/lib/ocf/resource.d/heartbeat/Dummy usr/lib/ocf/resource.d/heartbeat/IPaddr usr/lib/ocf/resource.d/heartbeat/IPaddr2 usr/lib/ocf/resource.d/heartbeat/drbd usr/lib/ocf/resource.d/heartbeat/anything usr/lib/ocf/resource.d/heartbeat/AoEtarget usr/lib/ocf/resource.d/heartbeat/apache usr/lib/ocf/resource.d/heartbeat/AudibleAlarm usr/lib/ocf/resource.d/heartbeat/db2 usr/lib/ocf/resource.d/heartbeat/Delay usr/lib/ocf/resource.d/heartbeat/eDir88 usr/lib/ocf/resource.d/heartbeat/EvmsSCC usr/lib/ocf/resource.d/heartbeat/Evmsd usr/lib/ocf/resource.d/heartbeat/Filesystem usr/lib/ocf/resource.d/heartbeat/ids usr/lib/ocf/resource.d/heartbeat/iscsi usr/lib/ocf/resource.d/heartbeat/ICP usr/lib/ocf/resource.d/heartbeat/IPsrcaddr usr/lib/ocf/resource.d/heartbeat/iSCSITarget usr/lib/ocf/resource.d/heartbeat/iSCSILogicalUnit usr/lib/ocf/resource.d/heartbeat/LinuxSCSI usr/lib/ocf/resource.d/heartbeat/LVM usr/lib/ocf/resource.d/heartbeat/MailTo usr/lib/ocf/resource.d/heartbeat/ManageRAID usr/lib/ocf/resource.d/heartbeat/ManageVE usr/lib/ocf/resource.d/heartbeat/mysql usr/lib/ocf/resource.d/heartbeat/mysql-proxy usr/lib/ocf/resource.d/heartbeat/nfsserver usr/lib/ocf/resource.d/heartbeat/oracle usr/lib/ocf/resource.d/heartbeat/oralsnr usr/lib/ocf/resource.d/heartbeat/pingd usr/lib/ocf/resource.d/heartbeat/portblock usr/lib/ocf/resource.d/heartbeat/pgsql usr/lib/ocf/resource.d/heartbeat/Pure-FTPd usr/lib/ocf/resource.d/heartbeat/Raid1 usr/lib/ocf/resource.d/heartbeat/Route usr/lib/ocf/resource.d/heartbeat/rsyncd usr/lib/ocf/resource.d/heartbeat/SAPDatabase usr/lib/ocf/resource.d/heartbeat/SAPInstance usr/lib/ocf/resource.d/heartbeat/SendArp usr/lib/ocf/resource.d/heartbeat/ServeRAID usr/lib/ocf/resource.d/heartbeat/SphinxSearchDaemon usr/lib/ocf/resource.d/heartbeat/Squid usr/lib/ocf/resource.d/heartbeat/Stateful usr/lib/ocf/resource.d/heartbeat/SysInfo usr/lib/ocf/resource.d/heartbeat/scsi2reservation usr/lib/ocf/resource.d/heartbeat/sfex usr/lib/ocf/resource.d/heartbeat/tomcat usr/lib/ocf/resource.d/heartbeat/VIPArip usr/lib/ocf/resource.d/heartbeat/VirtualDomain usr/lib/ocf/resource.d/heartbeat/vmware usr/lib/ocf/resource.d/heartbeat/WAS usr/lib/ocf/resource.d/heartbeat/WAS6 usr/lib/ocf/resource.d/heartbeat/WinPopup usr/lib/ocf/resource.d/heartbeat/Xen usr/lib/ocf/resource.d/heartbeat/Xinetd usr/lib/ocf/lib/heartbeat/ocf-shellfuncs usr/lib/ocf/lib/heartbeat/ocf-binaries usr/lib/ocf/lib/heartbeat/ocf-directories usr/lib/ocf/lib/heartbeat/ocf-returncodes usr/share/resource-agents/ra-api-1.dtd usr/sbin/sfex_init usr/sbin/ocf-tester etc/ha.d/shellfuncs usr/lib/heartbeat/tickle_tcp usr/lib/ocf/resource.d/heartbeat/CTDB usr/lib/ocf/resource.d/heartbeat/ldirectord usr/lib/ocf/resource.d/heartbeat/proftpd usr/lib/ocf/resource.d/heartbeat/syslog-ng usr/lib/ocf/resource.d/heartbeat/conntrackd usr/lib/ocf/resource.d/heartbeat/exportfs usr/lib/ocf/resource.d/heartbeat/nginx usr/lib/ocf/resource.d/heartbeat/fio usr/lib/ocf/resource.d/heartbeat/jboss usr/share/man/man7/* usr/lib/ocf/resource.d/heartbeat/postfix usr/sbin/ocft usr/share/resource-agents/ocft/README usr/share/resource-agents/ocft/README.zh_CN usr/share/resource-agents/ocft/caselib usr/share/resource-agents/ocft/configs/IPsrcaddr usr/share/resource-agents/ocft/configs/SendArp usr/share/resource-agents/ocft/configs/MailTo usr/share/resource-agents/ocft/configs/nfsserver usr/share/resource-agents/ocft/configs/portblock usr/share/resource-agents/ocft/configs/mysql usr/share/resource-agents/ocft/configs/IPaddr2 usr/share/resource-agents/ocft/configs/apache usr/share/resource-agents/ocft/configs/Filesystem usr/share/resource-agents/ocft/configs/db2 usr/share/resource-agents/ocft/configs/LVM debian/ldirectord.cf.ex0000644000000000000000000001700311527056025012252 0ustar # # Sample ldirectord configuration file to configure various virtual services. # # Ldirectord will connect to each real server once per second and request # /index.html. If the data returned by the server does not contain the # string "Test Message" then the test fails and the real server will be # taken out of the available pool. The real server will be added back into # the pool once the test succeeds. If all real servers are removed from the # pool then localhost:80 is added to the pool as a fallback measure. # Global Directives checktimeout=3 checkinterval=1 #fallback=127.0.0.1:80 autoreload=yes #logfile="/var/log/ldirectord.log" #logfile="local0" #emailalert="admin@x.y.z" #emailalertfreq=3600 #emailalertstatus=all quiescent=yes # Sample for an http virtual service virtual=192.168.6.240:80 real=192.168.6.2:80 gate real=192.168.6.3:80 gate real=192.168.6.6:80 gate fallback=127.0.0.1:80 gate service=http request="index.html" receive="Test Page" virtualhost=some.domain.com.au scheduler=rr #persistent=600 #netmask=255.255.255.255 protocol=tcp checktype=negotiate checkport=80 request="index.html" receive="Test Page" virtualhost=www.x.y.z # Sample configuration for a fwmark based service For an explination of # fwmark see the ipvsadm(8) man page #virtual=1 # real=192.168.6.2 gate # real=192.168.6.3 gate # real=192.168.6.6 gate # fallback=127.0.0.1:80 gate # service=http # scheduler=rr # #persistent=600 # #netmask=255.255.255.255 # protocol=fwm # checktype=negotiate # checkport=80 # request="index.html" # receive="Test Page" # virtualhost=x.y.z # Sample configuration for a service using a range of real servers # and a single real server for a virtual service #virtual=192.168.6.240:80 # real=192.168.6.2->192.168.6.7:80 gate # real=192.168.6.32:80 gate # fallback=127.0.0.1:80 gate # service=http # scheduler=rr # #persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=negotiate # checkport=80 # request="index.html" # receive="Test Page" # virtualhost=x.y.z #Sample configuration for an https virtual service. #Fallback setting overides global #virtual=192.168.6.240:443 # real=192.168.16.3:443 masq # real=192.168.16.5:443 masq # fallback=127.0.0.1:443 # service=https # scheduler=rr # #persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=negotiate # checkport=443 # request="index.html" # receive="Test Page" # virtualhost=x.y.z #Sample configuration for an ftp virtual service. #Fallback setting overides global #virtual=192.168.6.240:21 # real=192.168.16.3:21 masq # real=192.168.16.5:21 masq # fallback=127.0.0.1:21 # service=ftp # checkport=21 # scheduler=wlc # scheduler=rr # #persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=negotiate # login="anonymous" # passwd="ldirectord@localhost" # request="welcome.msg" # receive="test" #Sample configuration for an smtp virtual service. #Fallback setting overides global #virtual=192.168.6.240:25 # real=192.168.16.3:25 masq # real=192.168.16.5:25 masq # fallback=127.0.0.1:25 # service=smtp # scheduler=wlc # protocol=tcp # persistent=600 # #netmask=255.255.255.255 # checktype=negotiate # checkport=25 #Sample configuration for a pop virtual service. #Fallback setting overides global #virtual=192.168.6.240:110 # real=192.168.16.3:110 masq # real=192.168.16.5:110 masq # fallback=127.0.0.1:110 # service=pop # scheduler=wlc # persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=negotiate # checkport=110 # #login="test" # #passwd="test" ##Sample configuration for an imap virtual service. #Fallback setting overides global #virtual=192.168.6.240:143 # real=127.0.0.1:143 masq # real=192.168.16.3:143 masq # real=192.168.16.5:143 masq # fallback=127.0.0.1:143 # service=imap # scheduler=wlc # #persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=negotiate # checkport=143 # #login="test" # #passwd="test" #Sample configuration for an ldap virtual service. #Fallback setting overides global #virtual=192.168.84.5:389 # real=10.0.1.4:389 masq # real=10.0.1.6:389 masq # fallback=127.0.0.1:389 # service=ldap # scheduler=wlc # #persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=negotiate # checkport=369 # request="dc=upmc, dc=fr" # receive="dc=upmc, dc=fr" # #login="test" # #passwd="test" #Sample configuration for an nntp virtual service. #Fallback setting overides global #virtual=192.168.84.5:119 # real=10.0.1.4:119 masq # real=10.0.1.6:119 masq # fallback=127.0.0.1:119 # service=nntp # scheduler=wlc # #persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=negotiate # checkport=119 #Sample configuration for a UDP DNS virtual service. #Fallback setting overides global #virtual=192.168.84.5:53 # real=10.0.1.4:53 masq # real=10.0.1.6:53 masq # fallback=127.0.0.1:53 # service=dns # scheduler=wlc # #persistent=600 # #netmask=255.255.255.255 # protocol=udp # checktype=negotiate # checkport=53 # request="x.y.z" # receive="127.0.0.1" #Sample configuration for a MySQL virtual service. #virtual = 192.168.10.74:3306 # real=sql01->sql03:3306 gate 10 # fallback=127.0.0.1:3306 # service=mysql # scheduler=wrr # #persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=negotiate # login="readuser" # passwd="genericpassword" # database="portal" # request="SELECT * FROM link" #Sample configuration for a PostgreSQL virtual service. #virtual = 192.168.10.74:5432 # real=sql01->sql03:5432 gate 10 # fallback=127.0.0.1:5432 # service=pgsql # scheduler=wrr # #persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=negotiate # login="readuser" # passwd="genericpassword" # database="portal" # request="SELECT * FROM link" #Sample configuration for a Oracle virtual service. #virtual = 192.168.10.74:1521 # real=sql01->sql03:1521 gate 10 # fallback=127.0.0.1:1521 # service=oracle # scheduler=wrr # #persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=negotiate # login="readuser" # passwd="genericpassword" # database="portal" # request="SELECT * FROM link" #Sample configuration for an unsuported protocol #The real servers will just be brought up without checking for availability #virtual=192.168.6.240:23 # real=192.168.16.3:23 masq # real=192.168.16.5:23 masq # fallback=127.0.0.1:23 # service=none # scheduler=wlc # persistent=600 # #netmask=255.255.255.255 # protocol=tcp # checktype=on # A sample virtual services that uses a ping check. # Note that using checktype=connect and protocol=udp # will also effect ping checks #virtual=192.168.6.240:53 # real=192.168.6.2:53 gate # real=192.168.6.3:53 gate # real=192.168.6.6:53 gate # fallback=127.0.0.1:53 gate # scheduler=rr # #persistent=600 # #netmask=255.255.255.255 # protocol=udp # checktype=ping # checkcount=3 # A sample virtual services that uses a Radius check on UDP. # Note that using checktype=connect and protocol=udp # will also effect ping checks #virtual=192.168.6.240:1812 # real=192.168.6.2::1812 gate # real=192.168.6.3::1812 gate # real=192.168.6.6::1812 gate # fallback=127.0.0.1:1812 gate # scheduler=rr # #persistent=600 # #netmask=255.255.255.255 # protocol=udp # checktype=negotiate # service=radius # password="readuser" # passwd="genericpassword" # secret="somesecret" # checktimeout=1 # A sample virtual services that uses a SIP check on UDP. # Note that using checktype=connect and protocol=udp # will also effect ping checks #virtual=192.168.6.240:5060 # real=192.168.6.2::5060 gate # real=192.168.6.3::5060 gate # real=192.168.6.6::5060 gate # fallback=127.0.0.1:5060 gate # scheduler=rr # #persistent=600 # #netmask=255.255.255.255 # protocol=udp # checktype=negotiate # service=sip # checktimeout=1 debian/cluster-agents.manpages0000644000000000000000000000706311527056025013654 0ustar debian/tmp/usr/share/man/man7/ocf_heartbeat_mysql-proxy.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_IPsrcaddr.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_nfsserver.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_VIPArip.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_SAPInstance.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_portblock.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_proftpd.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_scsi2reservation.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_AoEtarget.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Xen.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Delay.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_WinPopup.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_eDir88.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Filesystem.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_IPv6addr.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_SAPDatabase.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_WAS.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_vmware.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_SysInfo.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Raid1.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_syslog-ng.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_pgsql.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_ManageVE.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Stateful.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_LinuxSCSI.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_LVM.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_postfix.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_pingd.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_MailTo.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_IPaddr.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_iSCSILogicalUnit.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_iscsi.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_ServeRAID.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_rsyncd.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_ids.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Xinetd.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_ClusterMon.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_drbd.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_IPaddr2.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_jboss.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_SendArp.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Dummy.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_mysql.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_ManageRAID.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_iSCSITarget.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_ICP.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_oracle.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_oralsnr.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Route.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Evmsd.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_db2.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_WAS6.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_tomcat.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_AudibleAlarm.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_anything.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_CTDB.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_SphinxSearchDaemon.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_apache.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_EvmsSCC.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Pure-FTPd.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_sfex.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_Squid.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_VirtualDomain.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_conntrackd.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_exportfs.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_fio.7 debian/tmp/usr/share/man/man7/ocf_heartbeat_nginx.7 debian/patches/0000755000000000000000000000000011527056025010620 5ustar debian/patches/series0000644000000000000000000000002111527056025012026 0ustar mysql-path.patch debian/patches/mysql-path.patch0000644000000000000000000000210311527056025013734 0ustar Index: cluster-agents-1.0.4/heartbeat/mysql =================================================================== --- cluster-agents-1.0.4.orig/heartbeat/mysql 2011-02-16 17:39:25.000000000 -0500 +++ cluster-agents-1.0.4/heartbeat/mysql 2011-02-16 17:40:10.806417884 -0500 @@ -58,14 +58,14 @@ OCF_RESKEY_pid_default="/var/mysql/mysqld.pid" OCF_RESKEY_socket_default="/var/run/mysql/mysql.sock" else -OCF_RESKEY_binary_default="/usr/bin/safe_mysqld" -OCF_RESKEY_config_default="/etc/my.cnf" +OCF_RESKEY_binary_default="/usr/bin/mysqld_safe" +OCF_RESKEY_config_default="/etc/mysql/my.cnf" OCF_RESKEY_datadir_default="/var/lib/mysql" OCF_RESKEY_user_default="mysql" OCF_RESKEY_group_default="mysql" -OCF_RESKEY_log_default="/var/log/mysqld.log" -OCF_RESKEY_pid_default="/var/run/mysql/mysqld.pid" -OCF_RESKEY_socket_default="/var/lib/mysql/mysql.sock" +OCF_RESKEY_log_default="/var/log/mysql.log" +OCF_RESKEY_pid_default="/var/run/mysqld/mysqld.pid" +OCF_RESKEY_socket_default="/var/lib/mysqld/mysqld.sock" fi OCF_RESKEY_client_binary_default="mysql" OCF_RESKEY_test_user_default="root"