diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-02-28 09:11:11 -0500 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-17 14:23:47 -0400 |
| commit | b7527a3c0b5ab0849a0c669cb345c6494628da8f (patch) | |
| tree | 23fcc12de79885d56acfa3a159127b0cafa2522b /meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh | |
| parent | 386984449b5ba4ce3899950e7a3b1bded9b891d0 (diff) | |
| download | meta-cloud-services-b7527a3c0b5ab0849a0c669cb345c6494628da8f.tar.gz | |
cinder: enable nfs backend
This patch enables multi-backend support (lvm-iscsi and nfs) on
cinder-volume. This including changing cinder.conf, creating
missing nfs_shares config file, and adding mount.nfs into compute
node image.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh b/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh new file mode 100644 index 0000000..1d7c475 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | #! /bin/bash | ||
| 2 | |||
| 3 | # Default setup | ||
| 4 | if [ "$1" == "1" ]; then | ||
| 5 | mkdir /etc/cinder/nfs_volumes | ||
| 6 | echo "/etc/cinder/nfs_volumes *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)" >> /etc/exports | ||
| 7 | fi | ||
