Refactors based on puppet-lint and updates nagios to work with yarn deployments