blob: f14ddf09986c40a4aaddb99a48ac0e841a1e8313 [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/vsphere
4# Configure the vsphere driver
5
6# Enable with:
7#
8# CINDER_DRIVER=vsphere
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 vmware_host_ip "$VMWAREAPI_IP"
34 iniset $CINDER_CONF DEFAULT vmware_host_username "$VMWAREAPI_USER"
35 iniset $CINDER_CONF DEFAULT vmware_host_password "$VMWAREAPI_PASSWORD"
36 iniset $CINDER_CONF DEFAULT volume_driver "cinder.volume.drivers.vmware.vmdk.VMwareVcVmdkDriver"
37}
38
39# Restore xtrace
40$MY_XTRACE
41
42# Local variables:
43# mode: shell-script
44# End: