QA to sous-Chef
Upcoming SlideShare
Loading in...5
×
 

QA to sous-Chef

on

  • 677 views

This is my experience as a black box test engineer venturing into Devops using Chef. I cover the following topics during the course of my presentation - Why Chef, Pre-requisites, Cooking on a vagrant ...

This is my experience as a black box test engineer venturing into Devops using Chef. I cover the following topics during the course of my presentation - Why Chef, Pre-requisites, Cooking on a vagrant VM and conclude with an introduction to Berkshelf.

Statistics

Views

Total Views
677
Views on SlideShare
672
Embed Views
5

Actions

Likes
0
Downloads
6
Comments
0

1 Embed 5

http://flavors.me 5

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    QA to sous-Chef QA to sous-Chef Presentation Transcript

    • QA to sous-Chef Sajnikanth Suriyanarayanan Presented at Devops Summit on 27th March 2014 & at DevopsSG on 2nd October 2013
    • About Me ● Coastal GeoScientist and Civil Engineer ● 10+ years in Software Quality Assurance and Functional Testing ● HP Certified Professional in Quality Center ● Lead Quality Assurance at Vistaprint ● http://sajnikanth.com
    • ● I’m a beginner ● May not be the standard way ● introduction to vagrant ● introduction to chef provisioning ● introduction to berkshelf Disclaimer & Take-Away
    • Contents ● Background ● Problem ● Vagrant + bash ● Vagrant + Chef ● Demo ● Lessons Learned
    • Background As Test Engineer, I usually: ● write test scripts ● merge pull requests ● deploy code ● test changes
    • Problem Current project is brand new. So: ● write test scripts ● merge pull requests ● deploy code (where to?) ● test changes
    • ● App lives locally ● Experiment with technologies (mysql or mongoDB; apache or nginx;) ● Unstable environment Problem ... A server should be like a phoenix, regularly rising from the ashes - Martin Fowler
    • Vagrant + bash ● Reproducible ● Portable ● Isolated; room for experimentation ● Use Bash to install apps 'automatically'
    • Vagrant + bash ... Changing / maintaining bash scripts?
    • Vagrant + Chef Apprehensions: ● Ruby ● Steep learning curve ○ hosted chef or chef solo ○ knife ○ opscode ○ cookbooks ○ recipe ○ omnibus ○ information overload!!
    • Forget it! Let’s get our hands dirty
    • Install nginx on vagrant VM using Chef Pre-Requisites ● VirtualBox ● vagrant installed ● vagrant omnibus ● vagrant guest additions ● knife Demo
    • vagrant init Demo - Initialize vagrant
    • Demo - Create Cookbooks mkdir ./cookbooks knife cookbook site download nginx Unarchive and delete tar
    • Demo - Update Vagrantfile
    • Demo - Let’s cook vagrant up
    • Demo - Results?
    • Demo - Download apt cookbook knife cookbook site download apt
    • Demo - Update Vagrantfile
    • Demo - We try again vagrant up Cookbook bluepill not found Cookbook rsyslog not found Cookbook build-essential not found Cookbook ohai not found Cookbook runit not found Cookbook yum not found Cookbook yum-epel not found
    • Demo - Download cookbooks
    • Demo - Update Vagrantfile
    • Hungry Already?
    • Demo - and again vagrant up
    • Easy way to manage cookbooks gem install berkshelf vagrant plugin install vagrant-berkshelf Demo - enter Berkshelf
    • cookbook 'nginx' Demo - Berksfile
    • berks install Demo - using berkshelf ~/.berkshelf/cookbooks/
    • Demo - update Vagrantfile update Vagrantfile to use berkshelf vagrant reload
    • Demo - Results
    • Demo - Resources ● Presentation link - http://j.mp/devops-summit ● Demo repo - https://github.com/sajnikanth/chef-berkshelf-demo ● Chef Tutorials ○ http://nathenharvey.com/blog/2012/12/06/learning-chef-part-1/ ○ https://learnchef.opscode.com/quickstart/ ● Berkshelf Introduction - http://youtu.be/hYt0E84kYUI
    • 3 Important lessons learned while using chef ● RTFM ● RTFM ● RTFM Lessons Learned Questions?