X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Focf%2Frbd.in;fp=src%2Fceph%2Fsrc%2Focf%2Frbd.in;h=150ad6e6b21b50dff969886ed0881ea9e96c5bc0;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/ocf/rbd.in b/src/ceph/src/ocf/rbd.in new file mode 100644 index 0000000..150ad6e --- /dev/null +++ b/src/ceph/src/ocf/rbd.in @@ -0,0 +1,296 @@ +#!/bin/sh +# +# OCF resource agent for mapping and unmapping +# RADOS Block Devices (RBDs) +# +# License: GNU Lesser General Public License (LGPL) 2.1 +# (c) 2012 Florian Haas, hastexo +# + +# Initialization: +: ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat} +. ${OCF_FUNCTIONS_DIR}/ocf-shellfuncs + +# Convenience variables +# When sysconfdir isn't passed in as a configure flag, +# it's defined in terms of prefix +prefix=@prefix@ + +# Defaults +OCF_RESKEY_pool_default="rbd" +OCF_RESKEY_cephconf_default="@sysconfdir@/@PACKAGE_TARNAME@/@PACKAGE_TARNAME@.conf" +: ${OCF_RESKEY_pool=${OCF_RESKEY_pool_default}} +: ${OCF_RESKEY_cephconf=${OCF_RESKEY_cephconf_default}} + +rbd_meta_data() { + cat < + + + 0.1 + +Manages RADOS Block Devices (RBDs) as a highly available +resource. Maps and unmaps RBDs as needed. + + Maps and unmaps RADOS Block Devices + + + + Name of the RBD device. + + RBD device name + + + + + Name of the RADOS pool where the RBD has been created + + RADOS pool name + + + + + Name of the device snapshot to map. + + Snapshot name + + + + + Location of the Ceph configuration file + + Ceph configuration file + + + + + Address (or comma-separated list of addresses) of + monitor servers to connect to. Overrides values from + configuration file. + + Monitor address(es) + + + + + Username to use when mapping the device. Required + if Ceph authentication is enabled on the monitor. + + Authentication username + + + + + File containing an authentication secret. Required + if Ceph authentication is enabled on the monitor. + + Authentication secret file + + + + + + + + + + + +EOF +} + +rbd_usage() { + cat <