Fix puppet-lint warnings and errors

Fix warnings and errors emitted by puppet-lint.