]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Finishes the fix of the generated config file.
authorThomas Goirand <zigo@debian.org>
Tue, 8 Dec 2015 09:46:47 +0000 (10:46 +0100)
committerThomas Goirand <zigo@debian.org>
Tue, 8 Dec 2015 09:46:47 +0000 (10:46 +0100)
debian/rules

index 1fef7ec777f327a263f18181002de49f88f574ce..829a3405457070bc1ea380e8dd0f0ced766bd2f8 100755 (executable)
@@ -59,6 +59,14 @@ override_dh_install:
 #      ./debian/gen-fixed-config
        cp etc/cinder/cinder.conf.sample $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
 
+       # Set LVM as default backend
+       sed -i 's/^[ \t#]*enabled_backends[ \t]*=.*/enabled_backends = lvm/' $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
+       echo "[lvm]"                            >> $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
+       echo "volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver" >> $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
+       echo "volume_group = pkgosvg0"          >> $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
+       echo "iscsi_protocol = iscsi"           >> $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
+       echo "iscsi_helper = tgtadm"            >> $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
+
        # Set a default value for lock_path
        sed -i 's|^[ \t#]*lock_path[ \t]*=.*|lock_path = /var/lock/cinder|' $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf