Added --yes to apt-get, apt-get needs to install puppet followed by adding the recent puppet repo.