Permalink
Browse files

Add OCF ResourceAgent for Pacemaker

Add 'check state' command
  • Loading branch information...
1 parent f596060 commit c6ac371b682b2586687e9aff1795edeb7065132f @xmm committed Jul 7, 2011
Showing with 702 additions and 5 deletions.
  1. +9 −0 .externalToolBuilders/make USE_PGXS=1 deb.launch
  2. +1 −1 Makefile
  3. +1 −1 debian/DEBIAN/control
  4. +2 −0 errcode.h
  5. +654 −0 ocf-ra-pgsql
  6. +35 −3 repmgr.c
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType">
+<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="/usr/bin/make"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="USE_PGXS=1 deb"/>
+<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
+<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/repmgr}"/>
+</launchConfiguration>
View
@@ -53,5 +53,5 @@ deb: repmgrd repmgr
cp README.rst COPYRIGHT CREDITS HISTORY LICENSE TODO ./debian/usr/share/postgresql-repmgr
cp *.sql ./debian/usr/share/postgresql-repmgr
dpkg-deb --build debian
- mv debian.deb ../postgresql-repmgr-9.0_1.1.0.deb
+ mv debian.deb ../postgresql-repmgr-9.0_1.1.1.deb
View
@@ -1,5 +1,5 @@
Package: postgresql-repmgr
-Version: 1.1.0-1
+Version: 1.1.1-0
Section: database
Priority: optional
Architecture: all
View
@@ -23,6 +23,7 @@
/* Exit return code */
#define SUCCESS 0
+#define IS_MASTER 100
#define ERR_BAD_CONFIG 1
#define ERR_BAD_RSYNC 2
#define ERR_STOP_BACKUP 3
@@ -33,5 +34,6 @@
#define ERR_PROMOTED 8
#define ERR_BAD_PASSWORD 9
#define ERR_STR_OVERFLOW 10
+#define ERR_INSTALLED 11
#endif /* _ERRCODE_H_ */
Oops, something went wrong.

0 comments on commit c6ac371

Please sign in to comment.