]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Now using oslo-config-generator to build the .conf.sample
authorThomas Goirand <thomas@goirand.fr>
Thu, 23 Apr 2015 16:23:26 +0000 (18:23 +0200)
committerThomas Goirand <thomas@goirand.fr>
Thu, 23 Apr 2015 16:23:26 +0000 (18:23 +0200)
Rewritten-From: 86ba698968447ba7af0a58e375c7245ed957fa03

xenial/debian/rules

index 5dd0bda07a4e7c6517bed3e7973a47683e0436d3..ea071208da41a0400ff0788da855458b81c118f0 100755 (executable)
@@ -22,8 +22,15 @@ override_dh_install:
        dh_install --fail-missing -Xbin/cinder-all
        install -D -m 0440 debian/cinder-common.sudoers $(CURDIR)/debian/cinder-common/etc/sudoers.d/cinder-common
 
-       install -D -m 0644 $(CURDIR)/debian/cinder.conf $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
-       #install -D -m 0644 $(CURDIR)/etc/cinder/cinder.conf.sample $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
+       oslo-config-generator --output-file $(CURDIR)/etc/cinder/cinder.conf.sample \
+               --namespace cinder \
+               --namespace oslo.concurrency \
+               --namespace oslo.db \
+               --namespace oslo.messaging \
+               --namespace oslo.policy \
+               --namespace keystonemiddleware.auth_token
+       #install -D -m 0644 $(CURDIR)/debian/cinder.conf $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
+       install -D -m 0644 $(CURDIR)/etc/cinder/cinder.conf.sample $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf
 
        # Disable https in default setup, as this makes our CI fail
        sed -i 's/#auth_protocol=https/auth_protocol=http/' $(CURDIR)/debian/cinder-common/usr/share/cinder-common/cinder.conf