add puppet apply to shel script