Ticket #172: Expand Puppet Configuration Management System - SupaHotBall/OE2-Group-D GitHub Wiki

Task

Add Servers as Puppet Agents

  • Install Puppet agent software on the remaining servers.
  • Configure each server to communicate with the Puppet master.

Verify Communication

  • Ensure all agents can successfully connect to the Puppet master.
  • Test the connection by applying a sample manifest.

Steps Taken

Backup Server

Add the puppet reporsitory

  • Code wget https://apt.puppet.com/puppet7-release-jammy.deb
  • Code sudo dpkg -i puppet7-release-jammy.deb
  • Code sudo apt update

image

Install the puppet agent package

  • Code sudo apt install puppet-agent -y

image

Configure the puppet agent

  • Code sudo nano /etc/puppetlabs/puppet/puppet.conf

AND

Add the following lines under the [main] section

  • server = mgmt-d
  • certname = backup-d.oe2.org.nz

image

Connect your agent to the puppet server

  • Code sudo /opt/puppetlabs/puppet/bin/puppet agent --server=mgmt-d --no-daemonize --verbose --onetime

image

You can view pending certificate requests on the master

  • Code sudo puppetserver ca list

image

sign a specific agent's certificate

  • Code sudo puppetserver ca sign --certname backup-d.oe2.org.nz

image


App Server

Add the puppet reporsitory

  • Code wget https://apt.puppet.com/puppet7-release-jammy.deb
  • Code sudo dpkg -i puppet7-release-jammy.deb
  • Code sudo apt update

image

Install the puppet agent package

  • Code sudo apt install puppet-agent -y

image

Configure the puppet agent

  • Code sudo nano /etc/puppetlabs/puppet/puppet.conf

AND

Add the following lines under the [main] section

  • server = apps-d
  • certname = apps-d.oe2.org.nz

image

Connect your agent to the puppet server

  • Code sudo /opt/puppetlabs/puppet/bin/puppet agent --server=mgmt-d --no-daemonize --verbose --onetime

image

You can view pending certificate requests on the master

  • Code sudo puppetserver ca list

image

sign a specific agent's certificate

  • Code sudo puppetserver ca sign --certname apps-d.oe2.org.nz

image

Challenges

N/A


External Resources

N/A


Ticket Reference

https://rt.dataraster.com/Ticket/Display.html?id=172