How Do You Install Puppet Master on a Debian Linux Server in GCP?

Problem scenario
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 in /tmp/ (e.g., vi /tmp/
1.b.  It should have the following as its content:

echo "deb 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 > /tmp/init-system-helpers_1.51_all.deb

curl > /tmp/puppet-master_5.4.0-2_all.deb

curl > /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/

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.

Leave a comment

Your email address will not be published. Required fields are marked *