updated script to configure puppet