introduction to puppet and usage in cloud

14
Introduction To Puppet And Usage In Cloud Aditya Patawari Fedora Ambassador and Contributor System Administrator at Directi Internet Solutions [email protected] adimania on freenode irc May 13, 2012 Aditya Patawari Introduction To Puppet And Usage In Cloud

Upload: aditya-patawari

Post on 22-Apr-2015

2.060 views

Category:

Technology


0 download

DESCRIPTION

Puppet is used to automate repetitive tasks and to give system administrators a flexible framework to build on. Puppet is written in Ruby, and comprises a configuration language to write manifests and modules, daemons to run the Puppet instructions on managed systems and to coordinate machines that are using Puppet, and a dashboard to help visualize your systems and create reports.

TRANSCRIPT

Page 1: Introduction to Puppet and Usage In Cloud

Introduction To Puppet And Usage In Cloud

Aditya Patawari

Fedora Ambassador and Contributor

System Administrator at Directi Internet Solutions

[email protected]

adimania on freenode irc

May 13, 2012

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 2: Introduction to Puppet and Usage In Cloud

Topics

Challenges faced by a System Administrator

Why scripts fail to scale

Need of a config management tool, Puppet

Puppet installation and configuration

Centralized infrastructure management

Cloud Is Different

Cloud Intelligence For Puppet

Scaling Puppet master

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 3: Introduction to Puppet and Usage In Cloud

Challenges Faced By A System Administrator

New servers. New applications. Updates.

Initial Configuration. Management. Replication.

New joinees. People Leaving Organization.

Read Again from first bullet. Essentially ”SyaAd Loop”

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 4: Introduction to Puppet and Usage In Cloud

Why Scripts Fail To Scale

Looks Dirty, specially when exceed 1000 lines (50 for perl)

Master Slave Transport: Usually SSH :(

Changes with platform

More focus on ”how to do?” than ”what to do?”

Do you like to Document?

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 5: Introduction to Puppet and Usage In Cloud

Need Of A Config Management Tool, Puppet

Centralized Configuration Management

Easy To Introduce New Nodes

Platform Independent Configs

Clear Structure = Self Documenting

Saves you from Carpel Tunnel!

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 6: Introduction to Puppet and Usage In Cloud

Puppet vs Chef

Usually more people on IRC, faster replies on mailing lists

Puppet is older, more recipes available

Awesome documentation and reference books like Pro Puppet

Derived from my limited experience, criticism welcomed

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 7: Introduction to Puppet and Usage In Cloud

Puppet Installation And Configuration

yum, apt, gem

Client-Server Architecture

Preconfigured with basic setup.

TLS security: Puppet CA

The Magic File: site.pp

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 8: Introduction to Puppet and Usage In Cloud

Puppet Installation And Configuration

vim /etc/puppet/manifests/site.ppAditya Patawari Introduction To Puppet And Usage In Cloud

Page 9: Introduction to Puppet and Usage In Cloud

Puppet Installation And Configuration

tree /etc/puppet

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 10: Introduction to Puppet and Usage In Cloud

Centralized Infrastructure Management

Manifests and Modules

Classes and Nodes

include and inherits

Providers and Facts

Serving Static Files

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 11: Introduction to Puppet and Usage In Cloud

Cloud Is Different

Everything is Virtual

On-the-fly Provisioning

Puppet Needs to be Cloud Aware

Plan for Capacity

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 12: Introduction to Puppet and Usage In Cloud

Cloud Intelligence For Puppet

Update Config Frequently

Handle Security Certificates of Clients

Regex Awesomeness

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 13: Introduction to Puppet and Usage In Cloud

Scaling Puppet Master

Webrick? Get Passenger/Unicorn

Splitting off the File Server

Load balancer and Puppet Cluster

Git can do Magic!

Aditya Patawari Introduction To Puppet And Usage In Cloud

Page 14: Introduction to Puppet and Usage In Cloud

Questions?

Now is your chance :)

Aditya Patawari Introduction To Puppet And Usage In Cloud