We are going to install opensource puppet4 on ubuntu16.04. Before moving ahead, setup your “/etc/hosts” file for host resolution. puppet server should resolve as puppet on client and server.

Installing puppet4 server:

Download puppet package repo from puppetlabs :

$ wget https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb
$ ls
puppetlabs-release-pc1-xenial.deb

Install downloaded package :

$ sudo dpkg -i puppetlabs-release-pc1-xenial.deb

resynchronize the package index files from their sources:

$ sudo apt-get update

We are ready to install puppet server :

$ sudo apt-get install puppetserver

Open port 8140 port on firewall for puppet:

sudo ufw allow 8140

Customizing Memory Allocation for Puppet Server and nodes, By default 2 GB memory will be allocated to the Puppet master we can customize this depends on the memory we have for the Puppet server. We needed to edit the below file “/etc/default/puppetserver”, we needed to find the below line and edit accordingly `JAVA_ARGS=”-Xms2g -Xmx2g -XX:MaxPermSize=256m”`, here I am using 512mb on VM.

cat /etc/default/puppetserver |grep -i args
JAVA_ARGS="-Xms512m -Xmx512m -XX:MaxPermSize=256m"

We are ready to start puppet server:

 $ systemctl start puppetserver.service

Installing puppet4 agent

Download puppet package repo from puppetlabs :

$ wget https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb
$ ls
puppetlabs-release-pc1-xenial.deb

Install downloaded package :

$ sudo dpkg -i puppetlabs-release-pc1-xenial.deb

resynchronize the package index files from their sources:

$ sudo apt-get update

We are ready to install puppet agent

$ sudo apt-get install puppet-agent

 


Warning: count(): Parameter must be an array or an object that implements Countable in /home/vhosts/howtolinuxblog.orgfree.com/wp-includes/class-wp-comment-query.php on line 399

Leave a Reply

Free Web Hosting