Created puppet agent context manager

Change-Id: I17696301cdb89ec15009cdae4a2bb860404912b1