add puppet files
add tests
bugfix
add puppet files and tests