#!/bin/bash chroot $target puppet agent --test --waitforcert 0 chroot $target puppet agent --enable chroot $target update-rc.d puppet enable