Skip to content

Install puppetserver on Linux Mint 20.x

step0: as this is a lab environment: don't ask for the sudo password

guru1@vm1:-$ _
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$USER

step1: enable puppet repo and refresh package list

guru1@vm1:-$ _
1
2
3
wget https://apt.puppet.com/puppet7-release-focal.deb
sudo dpkg -i puppet7-release-focal.deb
sudo apt-get update

step2: install puppetserver

guru1@vm1:-$ _
sudo apt-get install puppetserver -y

step3: configure puppetserver

guru1@vm1:-$ _
sudo vi /etc/puppetlabs/puppet/puppet.conf
/etc/puppetlabs/puppet/puppet.conf
# This file can be used to override the default puppet settings.
# See the following links for more details on what settings are available:
# - https://puppet.com/docs/puppet/latest/config_important_settings.html
# - https://puppet.com/docs/puppet/latest/config_about_settings.html
# - https://puppet.com/docs/puppet/latest/config_file_main.html
# - https://puppet.com/docs/puppet/latest/configuration.html
[server]
vardir = /opt/puppetlabs/server/data/puppetserver
logdir = /var/log/puppetlabs/puppetserver
rundir = /var/run/puppetlabs/puppetserver
pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid
codedir = /etc/puppetlabs/code

[main]
certname = vm1.opensysadmins.lab
server = vm1.opensysadmins.lab

step4: enable at boot, start and verify puppetserver service

guru1@vm1:-$ _
1
2
3
4
sudo systemctl enable puppetserver
sudo systemctl start puppetserver
systemctl status puppetserver
/opt/puppetlabs/bin/puppetserver -v

step5: check current certificates

guru1@vm1:-$ _
sudo /opt/puppetlabs/bin/puppetserver ca list --all
Back to top