f49224e92b
Package upstream and fuel-library Puppet modules for Ubuntu using the current fuel-library RPM approach: * use librarian-puppet-simple for downloading upstream modules * use upstream_modules.tar.gz workaround to build package in isolated environments (LP #1482667) Closes-Bug: #1535881 Change-Id: I176593263501093a2ce5e609f23a28d611f853a6
40 lines
1.5 KiB
Makefile
Executable File
40 lines
1.5 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
export FUEL_RELEASE=9.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
|
|
#TODO(dmitryme): remove rabbitmq-server-upstream once we switch to rabbitmq-3.5.7, as it will be included here
|
|
mv debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/rabbitmq debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/rabbitmq-server-upstream
|
|
mv debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/rabbitmq-fuel debian/fuel-ha-utils/usr/lib/ocf/resource.d/fuel/rabbitmq-server
|
|
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:
|