ba8ba8eeed
* The package contains the OCF script now, remove it from Fuel's fuel-ha-utils. * Rework the custom fuel rabbitmq-server OCF wrapper installation from the package, make it to invoke the upstream OCF RA from /usr/lib/ocf/resource.d/rabbitmq/rabbitmq-server-ha * Address some of TODO/FIXME as well. Related blueprint upstream-rabbit-ocf Change-Id: Iaa401685eb5e8dc514809eec426b9e550de609ac Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
37 lines
1.2 KiB
Makefile
Executable File
37 lines
1.2 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
export FUEL_RELEASE=10.0
|
|
export FUEL_LIB_DEST=/etc/puppet
|
|
export FULL_FUEL_LIB_DEST=/debian/fuel-library$(FUEL_RELEASE)$(FUEL_LIB_DEST)
|
|
|
|
%:
|
|
dh $@ --with python2
|
|
|
|
override_dh_auto_build:
|
|
if test -s $(CURDIR)/upstream_modules.tar.gz ; then \
|
|
tar xzvf $(CURDIR)/upstream_modules.tar.gz -C $(CURDIR)/deployment/puppet/ ; \
|
|
else \
|
|
bash -x $(CURDIR)/deployment/update_modules.sh ; \
|
|
fi
|
|
dh_auto_build
|
|
|
|
override_dh_fixperms:
|
|
chmod 755 debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/*
|
|
dh_fixperms
|
|
|
|
override_dh_install:
|
|
dh_install
|
|
mv debian/fuel-misc/usr/bin/logrotate debian/fuel-misc/usr/bin/fuel-logrotate
|
|
|
|
# Install fuel-library
|
|
mkdir -p $(CURDIR)$(FULL_FUEL_LIB_DEST)/modules
|
|
mkdir -p $(CURDIR)$(FULL_FUEL_LIB_DEST)/manifests
|
|
cp -r $(CURDIR)/deployment/puppet/* $(CURDIR)$(FULL_FUEL_LIB_DEST)/modules
|
|
cp deployment/Puppetfile $(CURDIR)$(FULL_FUEL_LIB_DEST)/modules
|
|
#LP1515988
|
|
find $(CURDIR)$(FULL_FUEL_LIB_DEST)/modules -maxdepth 2 -type d \( -name .git -or -name spec \) -exec rm -rf '{}' +
|
|
|
|
# FIXME (vparakhin): fix for dh_md5sums "Argument list too long"
|
|
# Remove this as soon as upstream modules are packaged separately
|
|
override_dh_md5sums:
|