How to Install and Setup Puppet Server-Agent in Debian 10(Buster)

How to Install and Setup Puppet Server-Agent in Debian 10(Buster)

- 3 mins

Introduction?

Steps

Install Puppet Agent

wget https://apt.puppet.com/puppet6-release-buster.deb
dpkg -i puppet6-release-buster.deb
apt update
apt install puppet-agent
systemctl start puppet
systemctl enable puppet

puppet

/opt/puppetlabs/bin/puppet config set server 'puppet-master.local' --section main

Install Puppet Server

wget https://apt.puppet.com/puppet6-release-buster.deb
dpkg -i puppet6-release-buster.deb
apt update
apt install puppetserver
systemctl start puppetserver
systemctl enable puppetserver

Puppet Agent - Server CA Sign

/opt/puppetlabs/bin/puppetserver ca list

puppet

/opt/puppetlabs/bin/puppetserver ca sign --certname puppet-agent.local

puppet

/opt/puppetlabs/bin/puppetserver ca sign --certname puppet-agent.local
/opt/puppetlabs/bin/puppet agent -t

Config a basic manifest and configure Nginx server on agent

puppet module install puppet-nginx
puppet module install puppetlabs-apt
vi /etc/puppetlabs/code/environments/production/manifests/site.pp
/opt/puppetlabs/bin/puppet agent -t

puppet


:metal: :metal: :metal: :metal: :metal: :metal: :metal:


Guneycan Sanli.


Guneycan Sanli

Guneycan Sanli

A person who like learning, music, travelling and sports.

comments powered by Disqus