Professional Documents
Culture Documents
Puppet Demo
Puppet Demo
Puppet Demo
• Setup Machines
• Setup Sudo DNS
• Install Puppet server
• Install Puppet client
• Sign the certificate
• Write an NTP module
Setup Machines
Update Package List
sudo apt update
Set up Hostname Resolution
• sudo nano /etc/hosts
Install Puppet Server (Master
Node)
• Download the latest Puppet version on the master
node:
wget https://apt.puppetlabs.com/puppet8-release-
jammy.deb
• Add the following lines to the end of the Puppet configuration file to
define the Puppet master information:
[main]
certname = puppet-client
server = puppet-master
Check Puppet Agent Status
• Check if the Puppet service is running with:
sudo systemctl status puppet
Sign Puppet Agent Certificate
• Using the Puppet master node, list all the available
certificates:
sudo /opt/puppetlabs/bin/puppetserver ca list --all
• Search “apache”
Configure apache
• Paste the installation link to server
puppet module install puppetlabs-apache --version
12.0.2
Output
Vim site.pp
Output
Configure the apache module in
puppet-client
ifconfig
Apache