In Google Cloud Platform you have a Debian Linux server. You want to install Puppet master on it. What should you do?
We suggest having at least 4.5 GB of memory. This can be from RAM or a combination of RAM and swap space. To create 4 GB of /swap/space you can see this posting as a guide, but remember that the link was created for configuring 2 GB of /swap/space. You will have to double the 2048 number and the other 2 GB numbers.
1.a. Create a file called puppm.sh in /tmp/ (e.g., vi /tmp/puppm.sh).
1.b. It should have the following as its content:
echo "deb http://ftp.us.debian.org/debian stable main contrib" /etc/apt/sources.list apt update -y apt-get -y upgrade init-system-helpers apt-get -y install ruby-augeas hiera init-system-helpers ruby ruby-deep-merge ruby-shadow facter curl http://http.us.debian.org/debian/pool/main/i/init-system-helpers/init-system-helpers_1.51_all.deb > /tmp/init-system-helpers_1.51_all.deb curl http://http.us.debian.org/debian/pool/main/p/puppet/puppet-master_5.4.0-2_all.deb > /tmp/puppet-master_5.4.0-2_all.deb curl http://http.us.debian.org/debian/pool/main/p/puppet/puppet_5.4.0-2_all.deb > /tmp/puppet_5.4.0-2_all.deb dpkg -i /tmp/init-system-helpers_1.51_all.deb dpkg -i /tmp/puppet-master_5.4.0-2_all.deb dpkg -i /tmp/puppet_5.4.0-2_all.deb mkdir -p /etc/puppet/code/environments/production/manifests/
2. Run this command: sudo bash /tmp/puppm.sh
3. Use "puppet -V" to test it was installed correctly. You are done.
If you want to see how to install Puppet Master on an Ubuntu server in AWS, see this posting.