fix dependencies
get puppet run to be idempotent for initial puppetmaster run.  Install rubygems where needed.