blob: ca343f708bd988bcc63422bd67378c1bb716de77 [file] [log] [blame]
Sean Daguee263c822014-12-05 14:25:28 -05001#!/bin/bash
2#
john-griffithd0860cc2014-01-23 11:31:10 -07003# lib/cinder_plugins/sheepdog
4# Configure the sheepdog driver
5
6# Enable with:
7#
8# CINDER_DRIVER=sheepdog
9
10# Dependencies:
11#
12# - ``functions`` file
13# - ``cinder`` configurations
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# Defaults
23# --------
24
25# Set up default directories
26
27
28# Entry Points
29# ------------
30
31# configure_cinder_driver - Set config files, create data dirs, etc
Ian Wienandaee18c72014-02-21 15:35:08 +110032function configure_cinder_driver {
john-griffithd0860cc2014-01-23 11:31:10 -070033 iniset $CINDER_CONF DEFAULT volume_driver "cinder.volume.drivers.sheepdog.SheepdogDriver"
34}
35
36# Restore xtrace
37$MY_XTRACE
38
39# Local variables:
40# mode: shell-script
41# End: