Top Banner
IT Automation with Puppet Enterprise Anuchit Chalothorn [email protected]
38

IT Automation with Puppet Enterprise

May 08, 2015

Download

Technology

IT Automation with Puppet Enterprise a shot workshop learn to deploy Puppet Enterprise and manage your IT with Pupppet Enterprise.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: IT Automation with Puppet Enterprise

IT Automation with Puppet Enterprise

Anuchit [email protected]

Page 2: IT Automation with Puppet Enterprise

What is Puppet

Puppet Enterprise is IT automation software that gives system administrators the power to easily automate repetitive tasks, quickly deploy critical applications, and proactively manage infrastructure, on-premises or in the cloud.

Page 3: IT Automation with Puppet Enterprise

What is Puppet Enterprise? : http://goo.gl/Eg2jD5

Page 4: IT Automation with Puppet Enterprise

What do we need ?

1. Puppet Enterprise (Full)2. Master Machine -> Puppet Master3. Node(s) Machine -> Puppet Agent

Page 5: IT Automation with Puppet Enterprise

Download Puppet Enterprise

Page 6: IT Automation with Puppet Enterprise

Simple Architecture

192.168.2.160

192.168.2.161

192.168.2.162

192.168.2.163

Page 7: IT Automation with Puppet Enterprise

Puppet Master (Master)

● Ubuntu Server 12.04.4 LTS● OpenSSH Server + NTP and config time server● Download PE match your OS & Arch● Extract PE and Run installer script

./puppet-enterprise-installer

Page 8: IT Automation with Puppet Enterprise

● Answer Questions

Puppet Master (Master) cont.

Install puppet master? [y/N] y

Install PuppetDB and console on this node? [Y/n] y

Install the cloud provisioner? [y/N] N

Page 9: IT Automation with Puppet Enterprise

Puppet Master (Master) cont.

Puppet master’s certname? [Default: master]

Puppet master’s DNS aliases (comma-separated list)? [Default: master,puppet]

Install the included Puppet Enterprise PostgreSQL server locally? [Y/n]

Admin email address (will be used as account name) for accessing the console interface? [email protected]

Page 10: IT Automation with Puppet Enterprise

Puppet Master (Master) cont.

Password for user [email protected] (minimum 8 characters)?

Install these packages automatically? [Y/n] y

Perform installation? [Y/n] y

now wait the installation process...

Page 11: IT Automation with Puppet Enterprise

Puppet Master (Master) cont.

After finish browse to PE master console https://192.168.2.160

● Login with your email address ([email protected])● and your PE password

Page 12: IT Automation with Puppet Enterprise

Puppet Master (Master) cont.

Page 13: IT Automation with Puppet Enterprise

Puppet Master (Master) cont.

Page 14: IT Automation with Puppet Enterprise

Puppet Agent (Node1)

● Ubuntu Server 12.04.4 LTS● OpenSSH Server + NTP and config time server● Download PE match your OS & Arch● Extract PE and Run installer script

./puppet-enterprise-installer

Page 15: IT Automation with Puppet Enterprise

● Answer Questions

Puppet Agent (Node1) cont.

Install puppet master? [y/N]

Install PuppetDB? [y/N]

Install PuppetDB? [y/N]

Page 16: IT Automation with Puppet Enterprise

Puppet Agent (Node1) cont.

Install the console? [y/N]

Install the cloud provisioner? [y/N]

Install puppet agent? [Y/n]

Install these packages automatically? [Y/n]

Page 17: IT Automation with Puppet Enterprise

Puppet Agent (Node1) cont.

Perform installation? [Y/n]

now wait the installation process...

Page 18: IT Automation with Puppet Enterprise

Test PE agent

Puppet Agent (Node1) cont.

puppet agent --test

Page 19: IT Automation with Puppet Enterprise

Node request

Page 20: IT Automation with Puppet Enterprise

Accept Node request

Page 21: IT Automation with Puppet Enterprise

Refresh Node list page

Page 22: IT Automation with Puppet Enterprise

Node1 detail

Page 23: IT Automation with Puppet Enterprise

Live Management

Page 24: IT Automation with Puppet Enterprise

Package search via Live Management

Page 25: IT Automation with Puppet Enterprise

How Automate your Infra with PE

● Write your own Puppet module or download from Puppet Forge

● Add Class to PE● Assign Class to node *OR*● assign Class to Group then assign node to Group

Page 26: IT Automation with Puppet Enterprise

Puppet Forge

Page 27: IT Automation with Puppet Enterprise

Add some module eg; Apache

● Goto PE master

● List module

puppet module install puppetlabs-apache

puppet module list

Page 28: IT Automation with Puppet Enterprise

Add Class with new Module

Page 29: IT Automation with Puppet Enterprise

New Class added

Page 30: IT Automation with Puppet Enterprise

Add new Group call WWW

Page 31: IT Automation with Puppet Enterprise

Node1 detail

Page 32: IT Automation with Puppet Enterprise

Report

Page 33: IT Automation with Puppet Enterprise

Events

Page 34: IT Automation with Puppet Enterprise

Package list

Page 35: IT Automation with Puppet Enterprise

Browse to Node1 :)

Page 36: IT Automation with Puppet Enterprise

Tips

● Add Group for your Classes● Assign Node to that Group● You will manage your Node with Group/Class

easily

Page 37: IT Automation with Puppet Enterprise

Future learning...

● Write your own module● Share your module at the Puppet Forge!

Module Fundamental : http://goo.gl/IO1Hj

Page 38: IT Automation with Puppet Enterprise