Installing
Puppet Open Source 4
Pre-Install
Checks:
Because
Puppet can run in Mater/Agent(Server/Client) mode and also in
stand-alone mode, So we need to decide which type of installation we
are going to install. Accordingly we need to choose the packages.
2.
Hardware Requirements:
I.
The
Puppet agent service has no particular hardware requirements and can
run on nearly anything.
II.
At
minimum, Puppet master server should have two processor cores and at
least 1 GB RAM.
III.
To
comfortably serve at least 1000 nodes, it should have 2-4 processor
cores and at least 4 GB RAM.
I.
In
an agent/master deployment, we
must
prepare our
network
for Puppet’s traffic.
Firewall:
8140 port
Name
Resolution:
Every
node must have a unique hostname.Forward
and reverse DNS
must
both be configured correctly. Or
we can create entries in /etc/hosts file.
The
time must be set accurately on the Puppet master server that will be
acting as the certificate authority. We Have to use NTP.
Installing
the Packages:
Most
Linux systems including CentOS, Redhat, Ubuntu, and Debian have
packages. Still not available for Mac OS X package. For a complete
list of supported platforms, view the system
requirements page.
First of all we need to Install a Release Package to Enable Puppet Labs Package Repositories:
Installing on CentOS-7/RHEL-7
# rpm -ivh
http://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm
Now
we can install the puppetserver package:
#
yum
install puppetserver
Note:
This will also install puppet-agent
package on the machine.
If
we want to edit the master machine settings, we can simply open the
config file, which is on different location then the previous
version.
/etc/puppetlabs/puppet/puppet.conf
Now
we need to set Java Heap Size:
What
is Java heap size ?
Java
heap size is
for hardware and for the amount of traffic the service will be
handling.
#
vim /etc/sysconfig/puppetserver
JAVA_ARGS="-Xms1g
-Xmx1g
It
means we are going to set 1g memory for the puppet master service.
If
we want to assign 512M memory then, we can set: -Xms512m
-Xmx512m
Stating
the PuppetServer Service:
#
systemctl start puppetserver
or
#
/opt/puppetlabs/bin/puppetserver foreground – -debug
Now
we can verify the service is running or not:
#
netstat -tupnl | grep 8140
<<==NEXT WILL CHECK THE DIFFERENCE BETWEEN PUPPET 3 AND 4 ==>>
Comments
Post a Comment