Add `service_ensure`.

This allows you to control the status of the Postgresql service directly
from postgresql::server.
Update for RHEL7.

Block RHEL7 from pulling in the PostgreSQL repos from upstream as they
don't exist yet.
This doesn't exist on RHEL7.
Handle ports for systemd.

This is a terrible hack currently but it appropriately handles systemd.
Ensure repo is in place before postgis installation.

We need to make sure we've actually setup the repo before installing
postgis.
Ensure we've always started postgresql at least once before a reload.
Add the template for port overriding on RHEL7.

This lets us tell systemd to do the right thing.  Can be extended later
for PGDATA.
Various test updates to handle RHEL7 better.
Make sure we set selinux contexts on Redhat.
Make sure we continue working post 7.0.
Switch to 'running'/'stopped' to match the test below.
Stop postgresql before changing port.
Various fixes to the tests.
Allow psql to fail as it sometimes will in the tests.
Fix the way we remove postgresql::client.
Fix tests on Centos.
Add an entry for RHEL5.
Make sure that the location for 12.04 is set.

This is really clumsy and we need a better way.
Fix rspec-beaker for now.
Fix RHEL5 service stopping.

On RHEL5 a service stop returns a 1 instead of 0 if the thing is already
stopped, so we now check the status first before attempting to stop.