puppetlabs/puppetdb — pull request #226 by cprice-puppet (2012-07-17 23:35:05+00:00)
Title: (#15536) Fix several bugs with packaging

This probably isn't quite ready for merge yet, but it's
ready for review. I need to test it with redhat, and
then I'll post an "all clear" comment here... but it
has some non-trivial changes in it, so I wouldn't
mind getting eyes on it sooner rather than later.
------------------------------------------------------------------------------
This commit provides several fixes and some cleanup
in our packaging scripts:

* Move most of the work of populating jetty.ini out of
the shell scripts and into the erb template.
* Move all of the directory permissioning into a common
erb template to be shared for both debs and rpms
* Move the logic for populating the jetty.ini file with
the facter FQDN into the ssl-setup script, since that
is the main place where we're manipulating that file.
* Fix "@lib_dir" in the Rakefile to point to the libdir,
/var/lib/puppetdb etc., rather than to /usr/share/puppetdb.
* Add an "@etc_dir" in the Rakefile to simplify directory
permissioning.
* Change the "package" task in the Rakefile to use a
system tmpdir for it's staging area, rather than a
local subdir. This allows devs to build debs on
a local VM that has a shared filesystem with the
host VM, so you only need one copy of the source
and can edit it in your normal dev environment.
* Get rid of an old template ("base.postinst.erb") that we
weren't actually using anymore.