update puppet code