From a415d8181dc98b3cca932a043f979cf587a6ec61 Mon Sep 17 00:00:00 2001 From: Nikita Koshikov Date: Wed, 20 Aug 2014 18:58:53 +0300 Subject: [PATCH] Coraid cinder driver added --- lib/cinder_plugins/coraid | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 lib/cinder_plugins/coraid diff --git a/lib/cinder_plugins/coraid b/lib/cinder_plugins/coraid new file mode 100644 index 0000000000..4042155c9a --- /dev/null +++ b/lib/cinder_plugins/coraid @@ -0,0 +1,52 @@ +# lib/cinder_plugins/coraid +# Configure the coraid driver + +# Enable with: +# +# CINDER_DRIVER=coraid + +# Dependencies: +# +# - ``functions`` file +# - ``cinder`` configurations + +# configure_cinder_driver - make configuration changes, including those to other services + +# Save trace setting +MY_XTRACE=$(set +o | grep xtrace) +set +o xtrace + + +# Defaults +# -------- + +# Set up default directories + + +# Entry Points +# ------------ + +# configure_cinder_driver - Set config files, create data dirs, etc +function configure_cinder_driver { + # To use coraid, set the following in localrc: + # CINDER_DRIVER=coraid + # CORAID_ESM_ADDRESS= + # CORAID_USER= + # CORAID_GROUP= + # CORAID_PASSWORD= + # + + iniset $CINDER_CONF DEFAULT volume_driver "cinder.volume.drivers.coraid.CoraidDriver" + iniset $CINDER_CONF DEFAULT coraid_esm_address $CORAID_ESM_ADDRESS + iniset $CINDER_CONF DEFAULT coraid_user $CORAID_USER + iniset $CINDER_CONF DEFAULT coraid_group $CORAID_GROUP + iniset $CINDER_CONF DEFAULT coraid_password $CORAID_PASSWORD + iniset $CINDER_CONF DEFAULT coraid_repository_key coraid_repository_key +} + +# Restore xtrace +$MY_XTRACE + +# Local variables: +# mode: shell-script +# End: