Fix puppet-lint errors and many warnings

This commit fixes all puppet-lint errors in core.pp and many
of the warnings as well.

Closes-Bug: #1210645