X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=trusty%2Fdebian%2Frules;h=0af17a95eb079f22b4c273fc93ef3201fe6a929e;hb=88daccfd6f042b9d4e3a9ffe5af6d53c7f8eef36;hp=e6df3bf7cce68f1d5e0d3d1df84a15f3b8eb01cc;hpb=1c45aa907de773ba76969a2115547a33e1e9eb5e;p=openstack-build%2Fceilometer-build.git diff --git a/trusty/debian/rules b/trusty/debian/rules index e6df3bf..0af17a9 100755 --- a/trusty/debian/rules +++ b/trusty/debian/rules @@ -7,7 +7,7 @@ include /usr/share/openstack-pkg-tools/pkgos.make export OSLO_PACKAGE_VERSION=$(VERSION) %: - dh $@ --with python2 + dh $@ --with python2,systemd override_dh_clean: dh_clean @@ -16,8 +16,18 @@ override_dh_clean: rm -f debian/ceilometer-common.config debian/ceilometer-common.postinst debian/ceilometer-api.config debian/ceilometer-api.postinst override_dh_install: - dh_install - install -D -m 0644 $(CURDIR)/etc/ceilometer/ceilometer.conf.sample $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf + dh_install --fail-missing + + # Manage ceilometer.conf + mkdir -p $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common + oslo-config-generator --output-file $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf \ + --namespace ceilometer \ + --namespace oslo.db \ + --namespace oslo.messaging \ + --namespace keystonemiddleware.auth_token + sed -i 's|[# \t]*auth_protocol[\t ]*=.*|auth_protocol=http|' $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf + chmod 0644 $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf + sed -i 's|#connection[ \t]*=.*|connection=mongodb://localhost:27017/ceilometer|' $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf override_dh_auto_build: dh_auto_build @@ -36,10 +46,10 @@ override_dh_auto_test: ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) rm -rf .testrepository testr init - set -e && \ - TEMP_REZ=`mktemp -t` && \ - bash -x ./setup-test-env.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | tee $$TEMP_REZ | subunit2pyunit || true ; \ - cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true ; \ + set -e ; \ + TEMP_REZ=`mktemp -t` ; \ + bash -x ./setup-test-env-mongodb.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | tee $$TEMP_REZ | subunit2pyunit ; \ + cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \ rm -f $$TEMP_REZ ; testr slowest endif