Fixed proxy issue in puppet module install

puppet module install was failing behind proxy. This was because, the script was
running that command with sudo. This issue has been fixed by removing sudo.

Infact sudo is not required there as userdata will always be running as root.
Unset Puppetmaster_name

By mistake puppetmaster_name and ip was set in the script. Fixed it.