refactored and added puppet master configuration