Puppet Enterprise Installation monolith and split

The target is obtain a small labs for puppet

puppet enterprise installation

System used redhat 6.6 on aws

Master

go to the page https://puppetlabs.com/download-puppet-enterprise-all you don't need to leave your email if you want a previous release https://puppet.com/misc/pe-files/previous-releases

download the version of interest

prerequisites for a production instances

  • 4 core
  • 4GB RAM
  • 100 GB in /opt
  • 100 GB in /var

looks also in http://docs.puppetlabs.com/pe/latest/install_system_requirements.html?_ga=1.227438877.1034896578.1442336703

wget https://s3.amazonaws.com/pe-builds/released/2015.2.0/puppet-enterprise-2015.2.0-el-6-x86_64.tar.gz
tar xvf puppet-enterprise-2015.2.0-el-6-x86_64.tar.gz 
cd puppet-enterprise-2015.2.0-el-6-x86_64
./puppet-enterprise-installer

login to the ip with https and port 3000 and continue the installation choosing a public dns name

Agent

wget https://s3.amazonaws.com/puppet-agents/2015.2/puppet-agent/1.2.2/repos/el/6/PC1/x86_64/puppet-agent-1.2.2-1.el6.x86_64.rpm?_ga=1.222771739.1034896578.1442336703
mv puppet-agent-1.2.2-1.el6.x86_64.rpm?_ga=1.222771739.1034896578.1442336703 puppet-agent-1.2.2-1.el6.x86_64.rpm
rpm -i puppet-agent-1.2.2-1.el6.x86_64.rpm
#update the path variable with /opt/puppetlabs/bin

SPLIT INSTALLATION

https://docs.puppetlabs.com/pe/latest/install_pe_split.html

Components

The Puppet master, the PE console, and PuppetDB components are installed on three separate machines—one machine for each component. This type of installation is recommended for deployments of 500-1000 agent nodes.

General Prerequisites and Notes

  • All nodes must know their own hostnames
  • run the installer from the same node assigned to the Puppet master component
  • port 3000 is reachable, as the web-based installer uses this port. You can close this port when the installation is complete
  • The ' (single quote) is forbidden in all passwords.

SSH Prerequisites and Notes

  • the public key for the user account performing the installation must be included in the authorized_keys file for that user account on each node that you’re installing a PE component on, including the machine from which you’re running the installer. This applies to root or non-root users.

there are 4 kind of installation

  1. user root with password authentication
  2. non-root with password authentication
  3. root with ssh authentication
  4. non-root with ssh authentication

I chose root with ssh in this case " Remote root SSH login must enabled on each node, including the node from which you’re running the installer. And the public root SSH key must be added to authorized_keys on each node on which you’re installing a PE component."

PuppetDB

You can also decide to use an already existing database , look the section "External PostgreSQL Prep Notes" of course this require more effort than the original one.

Salvo diversa indicazione, il contenuto di questa pagina è sotto licenza Creative Commons Attribution-ShareAlike 3.0 License