provide a reference example on how I initially implemented

this is a port of an actual puppet wsus implementation using puppet