ceph/src/ocf/Makefile.am
Florian Haas c31b86963a OCF resource agents: add rbd
Add a resource agent for mapping, unmapping and monitoring RBD devices.

Maps an RBD on start, unmaps it on stop. Checks "rbd showmapped"
output for monitoring whether the device is mapped, thus does not
rely on the ceph-rbdnamer udev magic to be enabled.

This RA is cloneable and essentially allows people to use RBD devices
as a drop-in replacement for
- iSCSI devices,
- host-based mirrored devices using md RAID-1,
- DRBD devices
in Pacemaker clusters.
2012-03-05 21:30:30 +01:00

24 lines
548 B
Makefile

EXTRA_DIST = ceph.in Makefile.in
if WITH_OCF
# The root of the OCF resource agent hierarchy
# Per the OCF standard, it's always "lib",
# not "lib64" (even on 64-bit platforms).
ocfdir = $(prefix)/lib/ocf
# The ceph provider directory
radir = $(ocfdir)/resource.d/$(PACKAGE_NAME)
ra_SCRIPTS = ceph rbd
install-data-hook:
$(LN_S) ceph $(DESTDIR)$(radir)/osd
$(LN_S) ceph $(DESTDIR)$(radir)/mds
$(LN_S) ceph $(DESTDIR)$(radir)/mon
uninstall-hook:
rm -f $(DESTDIR)$(radir)/osd
rm -f $(DESTDIR)$(radir)/mds
rm -f $(DESTDIR)$(radir)/mon
endif