Add rubygem-pg to builder

Our builders connect to postgres for metric collecting. We may as well
have a method to connect to the database for query applications as well.

Signed-off-by: Michael Stahnke <stahnma@puppetlabs.com>
Merge pull request #10 from stahnma/add-ruby-pg

Add rubygem-pg to builder
Full overhaul with tests

This commit is an almost complete refactor of the previous module. It removes
some of the levers and switches with the repos and instead of using the name of
a mock config to figure out how it is laid out, this uses the parameters of a
mock config to determine its name. The entry point of init.pp now collects some
common params and hands them down to the other manifests if provided.
Replace -%> with %> in templates, remove extra whitespace in yum repo name.
Merge pull request #11 from haus/total_refactor

Full overhaul with tests
Add epel repo with only ccache included

Without the epel repo enabled on el mocks, the buildsys-build group will be
unavailable for installation. This commit adds the epel repo to the mock config
for el mocks so that the buildsys-build group can be found and the mock
created. Only the ccache package is enabled, so nothing else will be brought
in.
Merge pull request #12 from haus/add_epel_for_el_mocks

Conditionally include epel on el for FOSS
Add ccache to pe-mock, add header to FOSS template

This commit adds the epel repo with just the ccache package to the pe-mock
config. It also updates the chroot_setup_cmd to install the buildsys-build
group which is available once the epel repo is added. It also adds a header to
the FOSS mock config to identify it as a puppet template.
Merge pull request #13 from haus/add_epel_ccache

Add ccache to pe-mock, add header to FOSS template
Add dependency on puppetlabs_yum and use it

This removes the logic in the repos manifest and instead uses a module which
already implements the same logic. It adds the dependency in the modulefile,
.fixtures.yml. It also adds a new param to the main class which can be used to
decide whether or not to include the pl repos.
This also moves the include on epel into init.pp and updates the previous
package dependency from rpmbuilder::repos to epel.
Merge pull request #14 from haus/add_puppetlabs_yum_module_depends

Add dependency on puppetlabs_yum and use it
Whitespace cleanup.
Need a $ sign in define params.
Remove extras packages from rpmbuilder

These packages don't have anything to do with building rpms or mocking, so this
commit removes them from the module. It removes the tests and removes their
inclusion from the main entry class.
Merge pull request #15 from haus/remove_extras_class

Remove extras class
Add single quotes around x86_64 so it's valid for a mock config.
Merge pull request #16 from haus/tweak_mock_templates

Add single quotes around x86_64 so it's valid for a mock config.
Add PE 2.8 and fedora 18 mocks
Merge pull request #17 from MosesMendoza/add_pe_2.8_and_f18

Add PE 2.8 and fedora 18 mocks
Add 2.9 to the list of pe versions for building mocks

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>