Login on the server and run following command.
wget --no-check-certificate -q -O /tmp/puppetmaster-install.sh https://github.com/liquidconcept/puppetmaster-install/raw/master/install.sh && sh /tmp/puppetmaster-install.sh && rm /tmp/puppetmaster-install.sh