blob: 558de46c6df9d8c40e64ffec275679e78ff6134b [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
Ian Wienand523f4882015-10-13 11:03:03 +110018_XTRACE_CINDER_SHEEPDOG=$(set +o | grep xtrace)
john-griffithd0860cc2014-01-23 11:31:10 -070019set +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
Ian Wienand523f4882015-10-13 11:03:03 +110037$_XTRACE_CINDER_SHEEPDOG
john-griffithd0860cc2014-01-23 11:31:10 -070038
39# Local variables:
40# mode: shell-script
41# End: