SlideShare a Scribd company logo
INFRASTRUCTURE AUTOMATION
WITH CHEF & ANSIBLE
Tips & tools for automating your web infrastructure.
Waqar Alamgir @wajrcs
https://github.com/waqar-alamgir/tutorials/tree/master/vagrant-lamp-ansible
Here’s What I’m Going To Talk To You About!
 What is Infrastructure and why you should
automate it?
 Typical Infrastructure
 Benefits
 CMS/ Automation
 Chef / Terminologies / Disadvantages
 Ansible / Disadvantages
 Demo
 Summary
 Questions
Meet this IT GUY & Service Provider
Why you should automate your web
infrastructure
 All of your configuration information is in one
place.
 You can spin up perfectly configured servers
instantly.
 You can change things in one place and have
them propagate through your entire system.
 You can create dev and test environments, that
are exact replicas of your production.
Infrastructure
 A high performance, reliable, and secure
integrated technology infrastructure for managing
multiple hosted applications by Application
Service Providers.
 Application infrastructure, comprised of
application servers, web servers, and often
database servers, is a core component in most
network architectures.
Typical Infrastructure
Infrastructure Automation with Chef & Ansible
Benefits
 Technical benefits:
 Continuous software delivery
 Less complex problems to fix
 Faster resolution of problems
 Business benefits:
 Faster delivery of features
 More stable operating environments
 More time available to add value (rather than
fix/maintain)
 PHP
 Nginx
 Redis
 PostgreSQL
 Gearman
My Typical Project
Infrastructure Automation with Chef & Ansible
Configuration Management Software
 Ansible
 Chef
 Puppet
 SaltStack
 CFEngine
 Juju
 many others
What is Chef?
“Reality-based automation for the cloud.”
“Infrastructure as Code.”
“A global view of your system as opposed to local
one”
Terminologies
Chef Server?
 Central storage for all your chef config.
 Stores all your git repo stuff as structured data in
json.
 Uses CouchDB for storage and quering
 Hosted Chef free for up to 5 nodes – then you
should host it yourself.
Terminologies
Knife?
Command line tool to interface between your local
code repo and your chef server.
Terminologies
Nodes?
Servers in your system.
Terminologies
Roles?
A nice way of abstracting what a node does and
what should be installed on it. i.e.
 A webserver role
 A database role
Open up firewall for front-end severs.
Terminologies
Cookbooks?
The base unit of configuration, so you would have
a cookbook for nginx, postgres, gunicorn, etc.
Terminologies
Recipes?
A computer program that runs cookbooks
Mostly written in Ruby or Python
Chef Infrastructure
Chef Infrastructure
Chef disadvantages
 You need to know Ruby (infrastructure as code)
 Need to install Chef Client on nodes
 Chef Client can be broken (example, Rubygems
Sandbox in 11/12 versions)
 Different teams with different approaches
 Documentation is not perfect
 Too many tools and options
Who is Using Chef
 Facebook, with over 20K instances
 Yahoo!
 IGN
 Nordstrom
 Dream Host
 Target
 Bloomberg
Ansible
 Runs locally (push model, like Chef Solo)
 Client-less (need only Python)
 YAML configs, "command to infrastructure"
 Huge community
 Ansible Tower for more automation
Ansible Infrastructure
Ansible disadvantages
 Bad team workflow
 Small flexibility in coding
 Poor development testing
 Limited support for Windows
(from 1.7 can use winrm,
but still not perfect and small amount of modules)
Who is Using Ansible
 Twitter
 Apple
 NASA
 CISCO
 Juniper
 HootSuit
Demo Application - LAMP Stack
Provision Theme
 Common system level tools
 MySQL, Memcached, Beanstalk
 Web tools as Apache, PHP
Demo Application - LAMP Stack
Demo Application - LAMP Stack
Demo Application - LAMP Stack
To Sum it all up….
 You should really, really, really use something for
server configuration.
 Chef: Ruby code to infrastructure.
 Ansible: YAML commands to infrastructure, with
no clients.
<Thank You!> Questions?
Contact Information
twitter: @wajrcs
github: https://github.com/waqar-
alamgir/tutorials/tree/master/vagrant-
lamp-ansible

More Related Content

PDF
Infrastructure Automation with Chef
PPTX
Chef introduction
PDF
Ansible Case Studies
PDF
Server Installation and Configuration with Chef
PPTX
Understand Chef
PDF
Ansible Introduction
ODP
Introduction to Chef
PPTX
Opscode Webinar: Managing Your VMware Infrastructure with Chef
Infrastructure Automation with Chef
Chef introduction
Ansible Case Studies
Server Installation and Configuration with Chef
Understand Chef
Ansible Introduction
Introduction to Chef
Opscode Webinar: Managing Your VMware Infrastructure with Chef

What's hot (20)

PDF
Compliance as Code
PPT
Chef, Devops, and You
PDF
DevOps for Humans - Ansible for Drupal Deployment Victory!
PDF
Chef vs Puppet vs Ansible vs SaltStack | Configuration Management Tools Compa...
PDF
Chef Fundamentals Training Series Module 2: Workstation Setup
PDF
Ansible 2 and Ansible Galaxy 2
PDF
Chef Fundamentals Training Series Module 1: Overview of Chef
PPTX
London Community Summit 2016 - Fresh New Chef Stuff
PDF
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
PPTX
Opscode Webinar: Cooking with Chef on Microsoft Windows
PDF
DevOps with Ansible
PDF
Ansible
PDF
Ansible introduction - XX Betabeers Galicia
PPTX
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
PDF
Introduction to Chef - April 22 2015
PDF
Introduction to Chef - Techsuperwomen Summit
PPTX
Automated Deployments with Ansible
PPTX
Ansible Devops North East - slides
PDF
Ansible Intro - June 2015 / Ansible Barcelona User Group
PPT
Overview of chef ( Infrastructure as a Code )
Compliance as Code
Chef, Devops, and You
DevOps for Humans - Ansible for Drupal Deployment Victory!
Chef vs Puppet vs Ansible vs SaltStack | Configuration Management Tools Compa...
Chef Fundamentals Training Series Module 2: Workstation Setup
Ansible 2 and Ansible Galaxy 2
Chef Fundamentals Training Series Module 1: Overview of Chef
London Community Summit 2016 - Fresh New Chef Stuff
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Opscode Webinar: Cooking with Chef on Microsoft Windows
DevOps with Ansible
Ansible
Ansible introduction - XX Betabeers Galicia
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
Introduction to Chef - April 22 2015
Introduction to Chef - Techsuperwomen Summit
Automated Deployments with Ansible
Ansible Devops North East - slides
Ansible Intro - June 2015 / Ansible Barcelona User Group
Overview of chef ( Infrastructure as a Code )
Ad

Viewers also liked (17)

PDF
Chef For OpenStack Overview
PDF
Infrastructure as Code with Chef / Puppet
PDF
Infrastructure as Code with Chef
PDF
Testable Infrastructure with Chef, Test Kitchen, and Docker
PPTX
Comparing Cloud Providers, Platforms and Tools
PPTX
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
PDF
Orange Home Automation Infrastructure – open interaction from the Cloud - Jea...
PDF
DevOps with Chef
PDF
Cloud Management and Automation, Highlights from 451 Research
PDF
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
KEY
Infrastructure Automation with Chef
PDF
VMware Ready vRealize Automation Program
PPTX
Continuous Delivery Automation of Cloud Infrastructure and Applications at Ch...
PDF
LinuxFest NW 2013: Hitchhiker's Guide to Open Source Cloud Computing
PPTX
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs...
PDF
Cloud orchestration major tools comparision
PDF
Compare Clouds: Aws vs Azure vs Google vs SoftLayer
Chef For OpenStack Overview
Infrastructure as Code with Chef / Puppet
Infrastructure as Code with Chef
Testable Infrastructure with Chef, Test Kitchen, and Docker
Comparing Cloud Providers, Platforms and Tools
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
Orange Home Automation Infrastructure – open interaction from the Cloud - Jea...
DevOps with Chef
Cloud Management and Automation, Highlights from 451 Research
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
Infrastructure Automation with Chef
VMware Ready vRealize Automation Program
Continuous Delivery Automation of Cloud Infrastructure and Applications at Ch...
LinuxFest NW 2013: Hitchhiker's Guide to Open Source Cloud Computing
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs...
Cloud orchestration major tools comparision
Compare Clouds: Aws vs Azure vs Google vs SoftLayer
Ad

Similar to Infrastructure Automation with Chef & Ansible (20)

PPT
PHP – Faster And Cheaper. Scale Vertically with IBM i
PPTX
DevOps, A brief introduction to Vagrant & Ansible
PPTX
Tech trends 2018 2019
PDF
DCSF19 Transforming a 15+ Year Old Semiconductor Manufacturing Environment
PDF
DevOps demystified
PPT
PDF
Infrastructure as Code
PPTX
Slides from LAX & DEN usergroup meetings
PPT
Lamp Zend Security
PDF
Class 7: Introduction to web technology entrepreneurship
PPTX
Infrastructure as Code - Getting Started, Concepts & Tools
PPTX
10 Reasons Why You Should Consider Google App Engine (GAE) for Your Next Project
PPT
Web Speed And Scalability
PPTX
Windows Azure Platform + PHP - Jonathan Wong
PPTX
Azure IaaS Feb 23 2016 Let's Dev This Cloud
PPTX
Windows Azure & How to Deploy Wordress
PPTX
Best of Microsoft Dev Camp 2015
PPTX
Building Real World Applications using Windows Azure - Scott Guthrie, 2nd Dec...
PPTX
Building azure applications ireland
PPTX
North east user group tour
PHP – Faster And Cheaper. Scale Vertically with IBM i
DevOps, A brief introduction to Vagrant & Ansible
Tech trends 2018 2019
DCSF19 Transforming a 15+ Year Old Semiconductor Manufacturing Environment
DevOps demystified
Infrastructure as Code
Slides from LAX & DEN usergroup meetings
Lamp Zend Security
Class 7: Introduction to web technology entrepreneurship
Infrastructure as Code - Getting Started, Concepts & Tools
10 Reasons Why You Should Consider Google App Engine (GAE) for Your Next Project
Web Speed And Scalability
Windows Azure Platform + PHP - Jonathan Wong
Azure IaaS Feb 23 2016 Let's Dev This Cloud
Windows Azure & How to Deploy Wordress
Best of Microsoft Dev Camp 2015
Building Real World Applications using Windows Azure - Scott Guthrie, 2nd Dec...
Building azure applications ireland
North east user group tour

Recently uploaded (20)

PDF
top salesforce developer skills in 2025.pdf
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Essential Infomation Tech presentation.pptx
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
Introduction to Artificial Intelligence
PDF
AI in Product Development-omnex systems
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
System and Network Administraation Chapter 3
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPT
JAVA ppt tutorial basics to learn java programming
PPTX
Materi-Enum-and-Record-Data-Type (1).pptx
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PPTX
Materi_Pemrograman_Komputer-Looping.pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Transform Your Business with a Software ERP System
top salesforce developer skills in 2025.pdf
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Essential Infomation Tech presentation.pptx
PTS Company Brochure 2025 (1).pdf.......
Introduction to Artificial Intelligence
AI in Product Development-omnex systems
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
ManageIQ - Sprint 268 Review - Slide Deck
Which alternative to Crystal Reports is best for small or large businesses.pdf
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
System and Network Administraation Chapter 3
Upgrade and Innovation Strategies for SAP ERP Customers
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
2025 Textile ERP Trends: SAP, Odoo & Oracle
JAVA ppt tutorial basics to learn java programming
Materi-Enum-and-Record-Data-Type (1).pptx
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Materi_Pemrograman_Komputer-Looping.pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Transform Your Business with a Software ERP System

Infrastructure Automation with Chef & Ansible

  • 1. INFRASTRUCTURE AUTOMATION WITH CHEF & ANSIBLE Tips & tools for automating your web infrastructure. Waqar Alamgir @wajrcs https://github.com/waqar-alamgir/tutorials/tree/master/vagrant-lamp-ansible
  • 2. Here’s What I’m Going To Talk To You About!  What is Infrastructure and why you should automate it?  Typical Infrastructure  Benefits  CMS/ Automation  Chef / Terminologies / Disadvantages  Ansible / Disadvantages  Demo  Summary  Questions
  • 3. Meet this IT GUY & Service Provider
  • 4. Why you should automate your web infrastructure  All of your configuration information is in one place.  You can spin up perfectly configured servers instantly.  You can change things in one place and have them propagate through your entire system.  You can create dev and test environments, that are exact replicas of your production.
  • 5. Infrastructure  A high performance, reliable, and secure integrated technology infrastructure for managing multiple hosted applications by Application Service Providers.  Application infrastructure, comprised of application servers, web servers, and often database servers, is a core component in most network architectures.
  • 8. Benefits  Technical benefits:  Continuous software delivery  Less complex problems to fix  Faster resolution of problems  Business benefits:  Faster delivery of features  More stable operating environments  More time available to add value (rather than fix/maintain)
  • 9.  PHP  Nginx  Redis  PostgreSQL  Gearman My Typical Project
  • 11. Configuration Management Software  Ansible  Chef  Puppet  SaltStack  CFEngine  Juju  many others
  • 12. What is Chef? “Reality-based automation for the cloud.” “Infrastructure as Code.” “A global view of your system as opposed to local one”
  • 13. Terminologies Chef Server?  Central storage for all your chef config.  Stores all your git repo stuff as structured data in json.  Uses CouchDB for storage and quering  Hosted Chef free for up to 5 nodes – then you should host it yourself.
  • 14. Terminologies Knife? Command line tool to interface between your local code repo and your chef server.
  • 16. Terminologies Roles? A nice way of abstracting what a node does and what should be installed on it. i.e.  A webserver role  A database role Open up firewall for front-end severs.
  • 17. Terminologies Cookbooks? The base unit of configuration, so you would have a cookbook for nginx, postgres, gunicorn, etc.
  • 18. Terminologies Recipes? A computer program that runs cookbooks Mostly written in Ruby or Python
  • 21. Chef disadvantages  You need to know Ruby (infrastructure as code)  Need to install Chef Client on nodes  Chef Client can be broken (example, Rubygems Sandbox in 11/12 versions)  Different teams with different approaches  Documentation is not perfect  Too many tools and options
  • 22. Who is Using Chef  Facebook, with over 20K instances  Yahoo!  IGN  Nordstrom  Dream Host  Target  Bloomberg
  • 23. Ansible  Runs locally (push model, like Chef Solo)  Client-less (need only Python)  YAML configs, "command to infrastructure"  Huge community  Ansible Tower for more automation
  • 25. Ansible disadvantages  Bad team workflow  Small flexibility in coding  Poor development testing  Limited support for Windows (from 1.7 can use winrm, but still not perfect and small amount of modules)
  • 26. Who is Using Ansible  Twitter  Apple  NASA  CISCO  Juniper  HootSuit
  • 27. Demo Application - LAMP Stack Provision Theme  Common system level tools  MySQL, Memcached, Beanstalk  Web tools as Apache, PHP
  • 28. Demo Application - LAMP Stack
  • 29. Demo Application - LAMP Stack
  • 30. Demo Application - LAMP Stack
  • 31. To Sum it all up….  You should really, really, really use something for server configuration.  Chef: Ruby code to infrastructure.  Ansible: YAML commands to infrastructure, with no clients.
  • 32. <Thank You!> Questions? Contact Information twitter: @wajrcs github: https://github.com/waqar- alamgir/tutorials/tree/master/vagrant- lamp-ansible