Looking for a configuration management system ? Well, Puppet is the best known solution …

Installation procedure

Login as “root”

Prerequisites

Set hostname :

root@ubuntu15-10:~# hostnamectl set-hostname puppet

Set DNS configuration :

root@ubuntu15-10:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.204
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.200
dns-domain argonay.wou

Restart the server :

root@ubuntu15-10:~# shutdown -r now

Add records in your DNS server, and check :

root@puppet:~# nslookup $(hostname)
Server: 192.168.1.200
Address: 192.168.1.200#53

Name: puppet.argonay.wou
Address: 192.168.1.204

Installation

Download “puppet-enterprise-2015.2.3-ubuntu-14.04-amd64.tar.gz” from Puttet Labs.

wou@ubuntu15-10:~$ sudo bash
[sudo] password for wou:

Uncompress and untar the archive :

root@ubuntu15-10:/tmp# tar xfz puppet-enterprise-2015.2.3-ubuntu-14.04-amd64.tar.gz

Go to the crated directory :

root@ubuntu15-10:/tmp# cd puppet-enterprise-2015.2.3-ubuntu-14.04-amd64

And launch installation script :

root@ubuntu1404:/tmp/puppet-enterprise-2015.2.3-ubuntu-14.04-amd64# ./puppet-enterprise-installer
============================================================================================================================================

Puppet Enterprise v2015.2.3 installer

Puppet Enterprise documentation can be found at http://docs.puppetlabs.com/pe/2015.2/

--------------------------------------------------------------------------------------------------------------------------------------------

STEP 1: GUIDED INSTALLATION

Before you begin, choose an installation method. We've provided a few paths to choose from.

- Perform a guided installation using the web-based interface. Think of this as an installation interview in which we ask you exactly
how you want to install PE. In order to use the web-based installer, you must be able to access this machine on port 3000 and provide
the SSH credentials of a user with root access. This method will login to servers on your behalf, install Puppet Enterprise and get you
up and running fairly quickly.

- Use the web-based interface to create an answer file so that you can log in to the servers yourself and perform the installation
locally. If you choose not to use the web-based interface, you can write your own answer file, or use the answer file(s) provided in the
PE installation tarball. Refer to Answer File Installation (http://docs.puppetlabs.com/pe/2015.2/install_automated.html), which provides
an overview on installing PE with an answer file.

?? Install packages and perform a guided install? [Y/n] y

Installing setup packages.

Please go to https://ubuntu1404.home:3000 in your browser to continue installation. Be sure to use https:// and that port 3000 is
reachable through the firewall.

Open an internet browser, you will get :

puppet

 

 

 

 

 

 

 

 

 

Continue :

puppet1

 

 

 

 

 

 

 

 

 

“Monolithic” :

puppet2

 

 

 

 

 

 

 

 

 

puppet3

 

 

 

 

 

 

 

 

puppet4

 

 

 

 

 

 

 

 

 

You may experience this issue (“Could not open an SSH connection”)

In this case, allow “root” access to “ssh” by changing “PermitRootLogin” value in “/etc/ssh/sshd_config” configuration file :

root@ubuntu1404:~# grep "PermitRootLogin" /etc/ssh/sshd_config
# allow root access for Puppet #PermitRootLogin without-password
PermitRootLogin yes

And restart “sshd” daemon :

root@ubuntu1404:~# service ssh restart
ssh stop/waiting
ssh start/running, process 2341

puppet5

 

 

 

 

 

 

 

 

 

Then proceed :

puppet7

 

 

 

 

 

 

 

 

 

 

puppet8

 

 

 

 

 

 

 

 

 

 

puppet9

 

 

 

 

 

 

 

 

 

 

 

 

www.pdf24.org    Send article as PDF   

Leave a Reply

Your email address will not be published. Required fields are marked *


*