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>