Remove debian build methods tasks from Rakefile

These will be handled by the packaging repo.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Remove get_version from Rakefile
Move debian into ext, not top level

per packaging repo expectations, which wants ext/{redhat,debian}

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Move the terminus task into its own file
Add :clear to tasks that we want from puppetdb

And not from the packaging repo.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Remove @plibdir from terminus install and name files explicitly

The terminus package shouldn't own the puppet lib dir, but rather just its own
files therein. This commit makes it so. It also removes the @plibdir
conditional in favor of a @pe conditional to help us move toward getting rid of
the OS-specific path templating in build artifacts.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Explicitly chown files in the terminus postinst

Rather than a wholesale chown -R of the entire puppet libdir. Also, replace the
@plibdir with actual paths.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
symlink pe-puppetdb redhat specfile to puppetdb

The packaging repo expects a specfile named after the project. A
dual-purpose one like puppetdb's isn't supported yet, so we need to one,
even it is just a symlink. However, there's a drawback. Ruby 1.9.3 won't
let us copy the symlink before the target and preserve attributes when
the target of the symlink doesn't exist yet, since it tries to set the
symlink metadata using a file that doesn't exist yet. This means we have
to use the system cp to create the dangling symlink in the workdir.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Move puppetdb task loading after all variable assignments

And a couple whitespace fixes.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Remove the erb method, the packaging repo supplies one

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>
Update mocks list for noarch

Puppetdb is noarch, so we don't have to build the 64s, the i386 will do
for the packaging repo.

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