Puppet Demo

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

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

• Once the download is complete, install the package


by using:
sudo dpkg -i puppet8-release-jammy.deb
• Update the package repository again:
sudo apt update

• Install the Puppet server with the following


command:
sudo apt install puppetserver

• Open the puppetserver file by using:


sudo nano /etc/default/puppetserver
Install and Configure Puppet
Agent (Client Node)
• Download the latest version of Puppet on a client
node. Use the following command:
wget https://apt.puppetlabs.com/puppet8-release-
jammy.deb
• Open the Puppet configuration file:
sudo nano /etc/puppetlabs/puppet/puppet.conf

• 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

• Sign the certificates with:


sudo /opt/puppetlabs/bin/puppetserver ca sign --all

• The command either has no output or confirms the


certificate is successfully signed.
Verify Agent from client
sudo puppet agent -t --server=puppet-master.local
Puppet Module
• Visit https://forge.puppet.com/

• 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

You might also like