Build fuel-library as deb package

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
This commit is contained in:
Vitaly Parakhin 2016-03-18 17:11:11 +02:00
parent dbdcf541bc
commit f49224e92b
3 changed files with 51 additions and 1 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
fuel-library9.0 (9.0.0-2) trusty; urgency=low
* Add librarian-puppet-simple support
-- Vitaly Parakhin <vparakhin@mirantis.com> Fri, 18 Dec 2015 22:50:58 +0200
fuel-library9.0 (9.0.0-1) trusty; urgency=low
* Bump version to 9.0

23
debian/control vendored
View File

@ -2,9 +2,30 @@ Source: fuel-library9.0
Section: admin
Priority: optional
Maintainer: Mirantis Product <product@mirantis.com>
Build-Depends: debhelper (>= 7), python-all
Build-Depends: debhelper (>= 7), python-all, librarian-puppet-simple
Standards-Version: 3.9.2
Package: fuel-library9.0
Provides: fuel-library
Architecture: all
Depends: ruby | ruby-interpreter, puppet, ${misc:Depends}, ${python:Depends}
Description: Set of puppet scripts for Fuel
Fuel is an open source deployment and management tool for OpenStack. Developed
as an OpenStack community effort, it provides an intuitive, GUI-driven
experience for deployment and management of OpenStack, related community
projects and plug-ins.
.
Fuel brings consumer-grade simplicity to streamline and accelerate the
otherwise time-consuming, often complex, and error-prone process of deploying,
testing and maintaining various configuration flavors of OpenStack at scale.
Unlike other platform-specific deployment or management utilities, Fuel is an
upstream OpenStack project that focuses on automating the deployment and
testing of OpenStack and a range of third-party options, so its not
compromised by hard bundling or vendor lock-in.
.
This package contains deployment manifests and code to execute provisioning of
master and slave nodes.
Package: fuel-ha-utils
Architecture: all
Depends: ${misc:Depends}, ${shlibs:Depends}, python-keystoneclient, python-neutronclient

23
debian/rules vendored
View File

@ -1,8 +1,20 @@
#!/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
@ -14,3 +26,14 @@ override_dh_install:
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: