update puppetmaster script