Refactor to put puppet manifest into reusable class