blob: 95ffce1ccce0fb0e59fbc12a7b74bc1f37a1d682 [file] [log] [blame]
Dean Troyerbcd2ba42014-06-12 18:24:01 -05001# lib/cinder_backends/solidfire
2# Configure the solidfire driver
3
4# Enable with:
5#
6# CINDER_ENABLED_BACKENDS+=,solidfire:<volume-type-name>
7
8# Dependencies:
9#
10# - ``functions`` file
11# - ``cinder`` configurations
12
13# CINDER_CONF
14
15# configure_cinder_driver - make configuration changes, including those to other services
16
17# Save trace setting
18MY_XTRACE=$(set +o | grep xtrace)
19set +o xtrace
20
21
22# Entry Points
23# ------------
24
25# configure_cinder_backend_solidfire - Set config files, create data dirs, etc
26function configure_cinder_backend_solidfire {
27 # To use SolidFire, set the following in local.conf:
28 # CINDER_ENABLED_BACKENDS+=,solidfire:<volume-type-name>
29 # SAN_IP=<mvip>
30 # SAN_LOGIN=<cluster-admin-account>
31 # SAN_PASSWORD=<cluster-admin-password>
32
33 local be_name=$1
34 iniset $CINDER_CONF $be_name volume_backend_name $be_name
35 iniset $CINDER_CONF $be_name volume_driver "cinder.volume.drivers.solidfire.SolidFireDriver"
36 iniset $CINDER_CONF $be_name san_ip $SAN_IP
37 iniset $CINDER_CONF $be_name san_login $SAN_LOGIN
38 iniset $CINDER_CONF $be_name san_password $SAN_PASSWORD
39}
40
41
42# Restore xtrace
43$MY_XTRACE
44
45# Local variables:
46# mode: shell-script
47# End: