add puppet code