diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/cinder.conf | 14 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/nfs_setup.sh | 7 |
2 files changed, 17 insertions, 4 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf index d922e03..aa0eba5 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf +++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf | |||
| @@ -1173,14 +1173,20 @@ rabbit_port=5672 | |||
| 1173 | 1173 | ||
| 1174 | # Define the names of the groups for multiple volume backends | 1174 | # Define the names of the groups for multiple volume backends |
| 1175 | #enabled_backends=fakedriver,lvmdriver | 1175 | #enabled_backends=fakedriver,lvmdriver |
| 1176 | enabled_backends=lvmdriver,nfsdriver | ||
| 1176 | 1177 | ||
| 1177 | # Define the groups as above | 1178 | # Define the groups as above |
| 1178 | #[lvmdriver] | ||
| 1179 | #volume_group=lvm-group-1 | ||
| 1180 | #volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver | ||
| 1181 | #volume_backend_name=LVM_iSCSI_unique1 | ||
| 1182 | #[fakedriver] | 1179 | #[fakedriver] |
| 1183 | #volume_driver=cinder.volume.driver.FakeISCSIDriver | 1180 | #volume_driver=cinder.volume.driver.FakeISCSIDriver |
| 1184 | 1181 | ||
| 1182 | [lvmdriver] | ||
| 1183 | volume_group=cinder-volumes | ||
| 1184 | volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver | ||
| 1185 | volume_backend_name=LVM_iSCSI | ||
| 1186 | |||
| 1187 | [nfsdriver] | ||
| 1188 | volume_group=nfs-group-1 | ||
| 1189 | volume_driver=cinder.volume.drivers.nfs.NfsDriver | ||
| 1190 | volume_backend_name=Generic_NFS | ||
| 1185 | 1191 | ||
| 1186 | # Total option count: 255 | 1192 | # Total option count: 255 |
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 | ||
