refactored puppet files into a module.