From: Lon Hohberger <lhh@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/2] rgmanager: Pull DRBD metadata from upstream git
Date: Tue, 13 Oct 2009 11:46:57 -0400 [thread overview]
Message-ID: <1255448818-18865-1-git-send-email-lhh@redhat.com> (raw)
Prevents schema breakage for users using drbd.sh
Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
rgmanager/src/resources/Makefile | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/rgmanager/src/resources/Makefile b/rgmanager/src/resources/Makefile
index 049f3cb..dedf7fc 100644
--- a/rgmanager/src/resources/Makefile
+++ b/rgmanager/src/resources/Makefile
@@ -12,11 +12,13 @@ RESOURCES=service.sh ip.sh nfsclient.sh nfsexport.sh \
apache.sh openldap.sh samba.sh mysql.sh \
postgres-8.sh tomcat-5.sh lvm.sh \
vm.sh SAPInstance SAPDatabase named.sh \
- ASEHAagent.sh drbd.sh
+ ASEHAagent.sh
METADATA=apache.metadata openldap.metadata samba.metadata \
mysql.metadata postgres-8.metadata tomcat-5.metadata \
- named.metadata lvm.metadata drbd.metadata
+ named.metadata lvm.metadata
+
+EXTERNAL_METADATA="http://git.drbd.org/?p=drbd-8.3.git;a=blob_plain;f=scripts/drbd.metadata.rhcs;hb=HEAD"
EVENT_TARGETS= \
default_event_script.sl \
@@ -99,11 +101,21 @@ resources.rng: $(RESOURCES) $(TARGET2) $(TARGET3) ra2rng.xsl ra2ref.xsl
echo " ./$$f"; \
bash ./$$f meta-data | xsltproc ra2rng.xsl - >> resources.rng; \
done
+ @echo Pulling in external metadata...
+ @for f in $(EXTERNAL_METADATA); do \
+ echo " $$f"; \
+ curl "$$f" | xsltproc ra2rng.xsl - >> resources.rng; \
+ done
cat resources.rng.mid >> resources.rng
@echo Generating per-resource RelaxNG reference information...
@for f in $(RESOURCES) $(TARGET2) $(TARGET3); do \
echo " ./$$f"; \
bash ./$$f meta-data | xsltproc ra2ref.xsl - >> resources.rng; \
done
+ @echo Pulling in external metadata...
+ @for f in $(EXTERNAL_METADATA); do \
+ echo " $$f"; \
+ curl "$$f" | xsltproc ra2ref.xsl - >> resources.rng; \
+ done
cat resources.rng.tail >> resources.rng
--
1.6.2.5
next reply other threads:[~2009-10-13 15:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-13 15:46 Lon Hohberger [this message]
2009-10-13 15:46 ` [Cluster-devel] [PATCH 2/2] rgmanager: Defer to upstream drbd resource agent Lon Hohberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1255448818-18865-1-git-send-email-lhh@redhat.com \
--to=lhh@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).