puppet : Split the catpuppetconf exec into a common class