diff options
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-cinder')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/cinder.conf | 6 | ||||
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh | 10 |
2 files changed, 15 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf index aa0eba5..6190ec5 100644 --- a/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf +++ b/meta-openstack/recipes-devtools/python/python-cinder/cinder.conf | |||
| @@ -1173,7 +1173,7 @@ 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 | enabled_backends=lvmdriver,nfsdriver,glusterfsdriver |
| 1177 | 1177 | ||
| 1178 | # Define the groups as above | 1178 | # Define the groups as above |
| 1179 | #[fakedriver] | 1179 | #[fakedriver] |
| @@ -1189,4 +1189,8 @@ volume_group=nfs-group-1 | |||
| 1189 | volume_driver=cinder.volume.drivers.nfs.NfsDriver | 1189 | volume_driver=cinder.volume.drivers.nfs.NfsDriver |
| 1190 | volume_backend_name=Generic_NFS | 1190 | volume_backend_name=Generic_NFS |
| 1191 | 1191 | ||
| 1192 | [glusterfsdriver] | ||
| 1193 | volume_group=glusterfs-group-1 | ||
| 1194 | volume_driver=cinder.volume.drivers.glusterfs.GlusterfsDriver | ||
| 1195 | volume_backend_name=GlusterFS | ||
| 1192 | # Total option count: 255 | 1196 | # Total option count: 255 |
diff --git a/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh b/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh new file mode 100644 index 0000000..30997d1 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python-cinder/glusterfs_setup.sh | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #! /bin/bash | ||
| 2 | |||
| 3 | # Default setup | ||
| 4 | if [ "$1" == "1" ]; then | ||
| 5 | mkdir /etc/cinder/glusterfs_volumes | ||
| 6 | /etc/init.d/glusterd start | ||
| 7 | gluster volume create glusterfs_volumes controller:/etc/cinder/glusterfs_volumes force | ||
| 8 | gluster volume start glusterfs_volumes force | ||
| 9 | /etc/init.d/glusterd stop | ||
| 10 | fi | ||
