SlideShare a Scribd company logo
STANDARDIZING AND
  MANAGING YOUR
  INFRASTRUCTURE
    by BRIAN RITCHIE
WHO AM I ?

• Worked        for CIMB Group, Mindvalley, IOR, KPC, etc
• Trained     in ITIL and PMI
• TOGAF        certified
• Experience        :
 •   Technical Lead - BI and Analytics

 •   Technical Test Manager - Group Financial Management System (GFMS)

 •   Initiator & Lead - Open Source Competency Centre & Research and Development Centre

 •   PMO Governance, System Administrator, and the list goes on...
WHY AM I EXCITED ?
1. ALL THE AMAZING PEOPLE
    GATHERED HERE FOR
         MOSC 2011
2. ITS MY BIRTHDAY !!!
WHY ARE YOU HERE TODAY ?
Standardizing and Managing Your Infrastructure - MOSC 2011
• You are a CIO/CTO or equivalent and looking to
 cut costs while innovating on your existing
 infrastructure.
• You are a CIO/CTO or equivalent and looking to
 cut costs while innovating on your existing
 infrastructure.

• You are a COO or equivalent and looking for ways
 to streamline your OPEX while introducing change
• You are a CIO/CTO or equivalent and looking to
 cut costs while innovating on your existing
 infrastructure.

• You are a COO or equivalent and looking for ways
 to streamline your OPEX while introducing change

• You are the "IT Person" and have been instructed
 to "fix it".
• You are a CIO/CTO or equivalent and looking to
 cut costs while innovating on your existing
 infrastructure.

• You are a COO or equivalent and looking for ways
 to streamline your OPEX while introducing change

• You are the "IT Person" and have been instructed
 to "fix it".

• or   you just enjoy learning
• You are a CIO/CTO or equivalent and looking to
 cut costs while innovating on your existing
 infrastructure.

• You are a COO or equivalent and looking for ways
 to streamline your OPEX while introducing change

• You are the "IT Person" and have been instructed
 to "fix it".

• or   you just enjoy learning
WHAT AM I GOING TO TALK
       ABOUT ?
Standardizing and Managing Your Infrastructure - MOSC 2011
• Originallywas going to fill this presentation with
 scripts and code since this is a SysAdmin’s favorite
 topic
• Originallywas going to fill this presentation with
 scripts and code since this is a SysAdmin’s favorite
 topic
• Originallywas going to fill this presentation with
 scripts and code since this is a SysAdmin’s favorite
 topic

• Realized that all work and no play makes Jack a dull
 boy, so I am going to mix and match
• Originallywas going to fill this presentation with
 scripts and code since this is a SysAdmin’s favorite
 topic

• Realized that all work and no play makes Jack a dull
 boy, so I am going to mix and match
• Originallywas going to fill this presentation with
 scripts and code since this is a SysAdmin’s favorite
 topic

• Realized that all work and no play makes Jack a dull
 boy, so I am going to mix and match
• Originallywas going to fill this presentation with
 scripts and code since this is a SysAdmin’s favorite
 topic

• Realized that all work and no play makes Jack a dull
 boy, so I am going to mix and match

• Tailoredmore towards the Business and Innovation
 side of things but will feature snippets of scripts so
 you understand how easy it is to innovate
• Originallywas going to fill this presentation with
 scripts and code since this is a SysAdmin’s favorite
 topic

• Realized that all work and no play makes Jack a dull
 boy, so I am going to mix and match

• Tailoredmore towards the Business and Innovation
 side of things but will feature snippets of scripts so
 you understand how easy it is to innovate
QUESTIONS TO KEEP IN MIND

• How   to decide if you need change in your infrastructure ?

• How   do you proceed from there ?

• What   are the new innovative ways to make this happen ?

• Current Technologies   and how do you evaluate them before
 applying ?

• How   do I think outside the box ?
Standardizing and Managing Your Infrastructure - MOSC 2011
CHANGE

Motivations                People
• Speed

• Reliability

• Scalability    Money                Time

                         Dependency
WHAT’S NEXT ?
PLAN AND DESIGN YOUR
        ARCHITECTURE

 Load Balancers

    Firewalls

  Web Cache

 Web Servers

Database Servers
BUT WAIT, PLANNING AND
 DESIGN IS SIMPLE. ITS THE
   DEPLOYMENT AND
  MAINTENANCE THATS
       KILLING US.
INTRODUCING




              Ruby preferred
REDUCE SERVER
DEPLOYMENT TIME TO
    5 MINUTES
WHAT IS CHEF ?


• Fully
     automated configuration management system - Imagine
 an API for your entire line of servers

• Ruby    powered but has a simple DSL (domain specific language)

• Scripts   are now called “Recipes”
WHAT IS WEBISTRANO ?

• Web    UI for managing Capistrano deployments

• Lets
     you manage your projects stages like test, staging and
 production

• Allows   you to do multi-stage and multi-environment scenarios

• Allows   you to track user deployment activity
WHAT IS NAGIOS ?


• Infrastructure   monitoring and alert system

• Ableto monitor uptime, resource usage, and react accordingly
 to perform auto healing

• Ableto integrate easily with Chef to perform auto scaling if
 and when required
WE HAVE THE TOOLS, BUT
HOW DO WE USE THEM ?
CHEF
• Chef      divides its script into “cookbooks” = container/folder

• Each     cookbook has sub-folders :
  •   recipes

  •   resources

  •   attributes

  •   definitions

  •   templates, etc...

• Thishelps keep the scripts consistent, neat, easy to maintain
 and share
SAMPLE SCRIPT FOR CHEF
Apache Bare Installation
  package "apache2" do
    case node[:platform]
    when "centos","redhat","fedora","suse"
      package_name "httpd"
    when "debian","ubuntu"
      package_name "apache2"
    when "arch"
      package_name "apache"
    end
    action :install
  end

                                  Source : https://github.com/opscode/cookbooks
SAMPLE SCRIPT FOR CHEF
MySQL Install Bare
  include_recipe "mysql::client"

  if platform?(%w{debian ubuntu})

    directory "/var/cache/local/preseeding" do
      owner "root"
      group "root"
      mode 0755
      recursive true
    end

  package "mysql-server" do
    action :install
  end

                                    Source : https://github.com/opscode/cookbooks
CHEF WEB INTERFACE
WEBISTRANO


• In
   simple terms, it talks to your revision control system and
 deploys the latest revision to the server

• Allows   you to rollback revisions in case you broke something

• Allowsyou to deploy and rollback on Staging environments
 making it a breeze to update your web apps
SAMPLE SCRIPT FOR
            WEBISTRANO
Install Wordpress - Config
    CONFIG = {
        :application => 'site_name',
        :domain => 'example.com',
        :user => 'demo',
        :password => nil,
        :ssh_port => 12345,
        :use_sudo => 'false',
        :scm => 'subversion',
        :scm_username => 'demosvn',
        :scm_password => 'passsvn',
        :repository => 'svn://svnrepo.company.com/wordpress_base/',
        :base_theme => 'thesis_theme',
        :subdirectory_path => '',
      }
SAMPLE SCRIPT FOR
              WEBISTRANO
Install Wordpress - Deploy
 set :deploy_to, "/home/demo/#{application}"
 set :deploy_via, :remote_cache
 set :copy_exclude, [ '.svn', '.DS_Store', '*.bat', '*.exe', 'Thumbs.db', '*.sh' ]
 set :shared_children, %w(log media system config)

 after 'deploy:setup', 'deploy:sync'
 after 'deploy:sync', 'deploy:cleanup'
WEBISTRANO WEB
  INTERFACE
NAGIOS

• Lots
     of plugins that are used to monitor and track different
 aspects of your infrastructure

• APIallows interaction and “plug and play” interfaces with other
 services such as Chef

• Configurationallows for Dashboard and reporting module to
 be customized to show current resources and provides
 enough data points for future architecture planning and
 reviews
NAGIOS WEB INTERFACE
DOES THIS MAKE BUSINESS
        SENSE ?
POST - EVALUATION

• Reduced deployment times for scaling up servers from 5-6
 hours to 5-10 minutes

• Reduced   IT OPEX by 56%

• Allowed   for Rapid Testing and Iterations

• Lesser
       downtime overall and faster patch deployments and
 upgrade cycles
CONTACT ME

                                      ISO 9001:2008,

• Email   : brianritchie@iorsb.com    ‘PKK Awam Kelas A’,
                                      Grade 7 CIDB




• Twitter   : @brianritchie

• Facebook     : fb.me/brianritchie

• Google   + : goo.gl/O8gjJ

• Skype   : brianritchie

More Related Content

KEY
Cloud tools
John McCaffrey
 
PDF
Opscode tech festa july 2013
Chef Software, Inc.
 
KEY
improving the performance of Rails web Applications
John McCaffrey
 
PDF
The unintended benefits of Chef
Chef Software, Inc.
 
PDF
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Chef Software, Inc.
 
PDF
Chef ignited a DevOps revolution – BK Box
Chef Software, Inc.
 
PPTX
Chef Tutorial for DEVOPS Newbies
Mamun Rashid, CCDH
 
PPTX
Opscode Webinar: Managing Your VMware Infrastructure with Chef
Chef Software, Inc.
 
Cloud tools
John McCaffrey
 
Opscode tech festa july 2013
Chef Software, Inc.
 
improving the performance of Rails web Applications
John McCaffrey
 
The unintended benefits of Chef
Chef Software, Inc.
 
Chef Fundamentals Training Series Module 3: Setting up Nodes and Cookbook Aut...
Chef Software, Inc.
 
Chef ignited a DevOps revolution – BK Box
Chef Software, Inc.
 
Chef Tutorial for DEVOPS Newbies
Mamun Rashid, CCDH
 
Opscode Webinar: Managing Your VMware Infrastructure with Chef
Chef Software, Inc.
 

What's hot (20)

PDF
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Software, Inc.
 
ODP
Introduction to Chef
Knoldus Inc.
 
ODP
Cvcc performance tuning
John McCaffrey
 
PDF
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
Chef Software, Inc.
 
PDF
Web app development with Flask
Jasim Muhammed
 
PDF
Chef-Zero & Local Mode
Michael Goetz
 
PDF
Ansible
Jasim Muhammed
 
PPT
Overview of chef ( Infrastructure as a Code )
Pravin Mishra
 
ODP
Configuration Management and Salt
55020
 
PDF
Infrastructure Automation with Chef
Jonathan Weiss
 
PDF
Velocity2011 chef-workshop
jtimberman
 
PDF
Chef vs Puppet vs Ansible vs SaltStack | Configuration Management Tools Compa...
Edureka!
 
PDF
Async Web and Python
Jasim Muhammed
 
PPTX
Chef Tutorial | Chef Tutorial For Beginners | DevOps Chef Tutorial | DevOps T...
Simplilearn
 
PDF
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
Josh Padnick
 
PDF
Chef Fundamentals Training Series Module 2: Workstation Setup
Chef Software, Inc.
 
PDF
Chef Fundamentals Training Series Module 4: The Chef Client Run and Expanding...
Chef Software, Inc.
 
PDF
Overview of Chef - Fundamentals Webinar Series Part 1
Chef
 
PDF
Infrastructure as Code with Chef
Sarah Hynes Cheney
 
PDF
Community Cookbooks & further resources - Fundamentals Webinar Series Part 6
Chef
 
Chef Fundamentals Training Series Module 1: Overview of Chef
Chef Software, Inc.
 
Introduction to Chef
Knoldus Inc.
 
Cvcc performance tuning
John McCaffrey
 
Chef Fundamentals Training Series Module 6: Roles, Environments, Community Co...
Chef Software, Inc.
 
Web app development with Flask
Jasim Muhammed
 
Chef-Zero & Local Mode
Michael Goetz
 
Overview of chef ( Infrastructure as a Code )
Pravin Mishra
 
Configuration Management and Salt
55020
 
Infrastructure Automation with Chef
Jonathan Weiss
 
Velocity2011 chef-workshop
jtimberman
 
Chef vs Puppet vs Ansible vs SaltStack | Configuration Management Tools Compa...
Edureka!
 
Async Web and Python
Jasim Muhammed
 
Chef Tutorial | Chef Tutorial For Beginners | DevOps Chef Tutorial | DevOps T...
Simplilearn
 
Introduction to Chef: Automate Your Infrastructure by Modeling It In Code
Josh Padnick
 
Chef Fundamentals Training Series Module 2: Workstation Setup
Chef Software, Inc.
 
Chef Fundamentals Training Series Module 4: The Chef Client Run and Expanding...
Chef Software, Inc.
 
Overview of Chef - Fundamentals Webinar Series Part 1
Chef
 
Infrastructure as Code with Chef
Sarah Hynes Cheney
 
Community Cookbooks & further resources - Fundamentals Webinar Series Part 6
Chef
 
Ad

Viewers also liked (7)

PPT
Regional project report
RAJIB BHATTACHARJEE
 
PPTX
Herding Cats: User Research Techniques for Standardizing an Organic Intranet
Gianna Pfister-LaPin
 
PDF
The 4 Perspectives of BUSINESS MODEL PROJECT MANAGEMENT: Why Some Businesses ...
Rod King, Ph.D.
 
PPTX
Fountain project model
Rikupekka Oksanen
 
PDF
3 Critical Steps to Project Management Office (PMO) Development
GravesSE
 
PDF
Simply Standardize Over 40 Business Modeling Tools: The 4Q-Business Model Int...
Rod King, Ph.D.
 
PDF
Lean management, lean leadership and leader standard work (AME Webinar)
Association for Manufacturing Excellence
 
Regional project report
RAJIB BHATTACHARJEE
 
Herding Cats: User Research Techniques for Standardizing an Organic Intranet
Gianna Pfister-LaPin
 
The 4 Perspectives of BUSINESS MODEL PROJECT MANAGEMENT: Why Some Businesses ...
Rod King, Ph.D.
 
Fountain project model
Rikupekka Oksanen
 
3 Critical Steps to Project Management Office (PMO) Development
GravesSE
 
Simply Standardize Over 40 Business Modeling Tools: The 4Q-Business Model Int...
Rod King, Ph.D.
 
Lean management, lean leadership and leader standard work (AME Webinar)
Association for Manufacturing Excellence
 
Ad

Similar to Standardizing and Managing Your Infrastructure - MOSC 2011 (20)

PPTX
Quality code in wordpress
Ran Bar-Zik
 
PDF
Enabling your DevOps culture with AWS-webinar
Aaron Walker
 
PPTX
My personal story from azure it pro to azure dev ops
nj-azure
 
PDF
Wilko Nienhaus - continuous delivery release the right thing, done right, at ...
DevConFu
 
PPTX
The ABC's of IaC
Steven Pressman, CISSP
 
PDF
Continuous Integration with Open Source Tools - PHPUgFfm 2014-11-20
Michael Lihs
 
PPTX
'Intro to Infrastructure as Code' - DevOps Belfast
John Fitzpatrick
 
PDF
Introduction to Infrastructure as Code & Automation / Introduction to Chef
Nathen Harvey
 
PPTX
Continuous database deployment
Mike (Michael) Acord
 
PPTX
Picnic Software - Developing a flexible and scalable application
Nick Josevski
 
PPTX
DevOps Columbus Meetup Kickoff - Infrastructure as Code
Michael Ducy
 
PDF
DevOps, Common use cases, Architectures, Best Practices
Shiva Narayanaswamy
 
PDF
Introduction to Chef - Techsuperwomen Summit
Jennifer Davis
 
PPTX
Best Practices for Building WordPress Applications
Taylor Lovett
 
PPTX
Chef onlinuxonpower
Moya Brannan
 
PPTX
Compliance Automation with InSpec
Nathen Harvey
 
PDF
OSDC 2013 | Introduction into Chef by Andy Hawkins
NETWAYS
 
PDF
Infrastructure as Data with Ansible for easier Continuous Delivery
Carlo Bonamico
 
PPTX
Azure Functions Real World Examples
Yochay Kiriaty
 
PDF
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Emerson Eduardo Rodrigues Von Staffen
 
Quality code in wordpress
Ran Bar-Zik
 
Enabling your DevOps culture with AWS-webinar
Aaron Walker
 
My personal story from azure it pro to azure dev ops
nj-azure
 
Wilko Nienhaus - continuous delivery release the right thing, done right, at ...
DevConFu
 
The ABC's of IaC
Steven Pressman, CISSP
 
Continuous Integration with Open Source Tools - PHPUgFfm 2014-11-20
Michael Lihs
 
'Intro to Infrastructure as Code' - DevOps Belfast
John Fitzpatrick
 
Introduction to Infrastructure as Code & Automation / Introduction to Chef
Nathen Harvey
 
Continuous database deployment
Mike (Michael) Acord
 
Picnic Software - Developing a flexible and scalable application
Nick Josevski
 
DevOps Columbus Meetup Kickoff - Infrastructure as Code
Michael Ducy
 
DevOps, Common use cases, Architectures, Best Practices
Shiva Narayanaswamy
 
Introduction to Chef - Techsuperwomen Summit
Jennifer Davis
 
Best Practices for Building WordPress Applications
Taylor Lovett
 
Chef onlinuxonpower
Moya Brannan
 
Compliance Automation with InSpec
Nathen Harvey
 
OSDC 2013 | Introduction into Chef by Andy Hawkins
NETWAYS
 
Infrastructure as Data with Ansible for easier Continuous Delivery
Carlo Bonamico
 
Azure Functions Real World Examples
Yochay Kiriaty
 
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Emerson Eduardo Rodrigues Von Staffen
 

More from Brian Ritchie (7)

PDF
Make it Personal by Making it Local
Brian Ritchie
 
PDF
Buzzwords, Statistics and Lies - True Drivers of Digital Marketing and Growth...
Brian Ritchie
 
PDF
Advanced Growth Marketing 101 by Brian Ritchie
Brian Ritchie
 
PDF
Growth by Segmentation - Part 1 by Brian Ritchie
Brian Ritchie
 
PDF
Tell Your Story - Brian Ritchie
Brian Ritchie
 
PPTX
Introduction to SSL and How to Exploit & Secure
Brian Ritchie
 
PPTX
WiMAX_Intro
Brian Ritchie
 
Make it Personal by Making it Local
Brian Ritchie
 
Buzzwords, Statistics and Lies - True Drivers of Digital Marketing and Growth...
Brian Ritchie
 
Advanced Growth Marketing 101 by Brian Ritchie
Brian Ritchie
 
Growth by Segmentation - Part 1 by Brian Ritchie
Brian Ritchie
 
Tell Your Story - Brian Ritchie
Brian Ritchie
 
Introduction to SSL and How to Exploit & Secure
Brian Ritchie
 
WiMAX_Intro
Brian Ritchie
 

Recently uploaded (20)

PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PPTX
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Doc9.....................................
SofiaCollazos
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Introduction to Flutter by Ayush Desai.pptx
ayushdesai204
 
Software Development Methodologies in 2025
KodekX
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 

Standardizing and Managing Your Infrastructure - MOSC 2011

  • 1. STANDARDIZING AND MANAGING YOUR INFRASTRUCTURE by BRIAN RITCHIE
  • 2. WHO AM I ? • Worked for CIMB Group, Mindvalley, IOR, KPC, etc • Trained in ITIL and PMI • TOGAF certified • Experience : • Technical Lead - BI and Analytics • Technical Test Manager - Group Financial Management System (GFMS) • Initiator & Lead - Open Source Competency Centre & Research and Development Centre • PMO Governance, System Administrator, and the list goes on...
  • 3. WHY AM I EXCITED ?
  • 4. 1. ALL THE AMAZING PEOPLE GATHERED HERE FOR MOSC 2011
  • 5. 2. ITS MY BIRTHDAY !!!
  • 6. WHY ARE YOU HERE TODAY ?
  • 8. • You are a CIO/CTO or equivalent and looking to cut costs while innovating on your existing infrastructure.
  • 9. • You are a CIO/CTO or equivalent and looking to cut costs while innovating on your existing infrastructure. • You are a COO or equivalent and looking for ways to streamline your OPEX while introducing change
  • 10. • You are a CIO/CTO or equivalent and looking to cut costs while innovating on your existing infrastructure. • You are a COO or equivalent and looking for ways to streamline your OPEX while introducing change • You are the "IT Person" and have been instructed to "fix it".
  • 11. • You are a CIO/CTO or equivalent and looking to cut costs while innovating on your existing infrastructure. • You are a COO or equivalent and looking for ways to streamline your OPEX while introducing change • You are the "IT Person" and have been instructed to "fix it". • or you just enjoy learning
  • 12. • You are a CIO/CTO or equivalent and looking to cut costs while innovating on your existing infrastructure. • You are a COO or equivalent and looking for ways to streamline your OPEX while introducing change • You are the "IT Person" and have been instructed to "fix it". • or you just enjoy learning
  • 13. WHAT AM I GOING TO TALK ABOUT ?
  • 15. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic
  • 16. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic
  • 17. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic • Realized that all work and no play makes Jack a dull boy, so I am going to mix and match
  • 18. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic • Realized that all work and no play makes Jack a dull boy, so I am going to mix and match
  • 19. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic • Realized that all work and no play makes Jack a dull boy, so I am going to mix and match
  • 20. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic • Realized that all work and no play makes Jack a dull boy, so I am going to mix and match • Tailoredmore towards the Business and Innovation side of things but will feature snippets of scripts so you understand how easy it is to innovate
  • 21. • Originallywas going to fill this presentation with scripts and code since this is a SysAdmin’s favorite topic • Realized that all work and no play makes Jack a dull boy, so I am going to mix and match • Tailoredmore towards the Business and Innovation side of things but will feature snippets of scripts so you understand how easy it is to innovate
  • 22. QUESTIONS TO KEEP IN MIND • How to decide if you need change in your infrastructure ? • How do you proceed from there ? • What are the new innovative ways to make this happen ? • Current Technologies and how do you evaluate them before applying ? • How do I think outside the box ?
  • 24. CHANGE Motivations People • Speed • Reliability • Scalability Money Time Dependency
  • 26. PLAN AND DESIGN YOUR ARCHITECTURE Load Balancers Firewalls Web Cache Web Servers Database Servers
  • 27. BUT WAIT, PLANNING AND DESIGN IS SIMPLE. ITS THE DEPLOYMENT AND MAINTENANCE THATS KILLING US.
  • 28. INTRODUCING Ruby preferred
  • 30. WHAT IS CHEF ? • Fully automated configuration management system - Imagine an API for your entire line of servers • Ruby powered but has a simple DSL (domain specific language) • Scripts are now called “Recipes”
  • 31. WHAT IS WEBISTRANO ? • Web UI for managing Capistrano deployments • Lets you manage your projects stages like test, staging and production • Allows you to do multi-stage and multi-environment scenarios • Allows you to track user deployment activity
  • 32. WHAT IS NAGIOS ? • Infrastructure monitoring and alert system • Ableto monitor uptime, resource usage, and react accordingly to perform auto healing • Ableto integrate easily with Chef to perform auto scaling if and when required
  • 33. WE HAVE THE TOOLS, BUT HOW DO WE USE THEM ?
  • 34. CHEF • Chef divides its script into “cookbooks” = container/folder • Each cookbook has sub-folders : • recipes • resources • attributes • definitions • templates, etc... • Thishelps keep the scripts consistent, neat, easy to maintain and share
  • 35. SAMPLE SCRIPT FOR CHEF Apache Bare Installation package "apache2" do   case node[:platform]   when "centos","redhat","fedora","suse"     package_name "httpd"   when "debian","ubuntu"     package_name "apache2"   when "arch"     package_name "apache"   end   action :install end Source : https://github.com/opscode/cookbooks
  • 36. SAMPLE SCRIPT FOR CHEF MySQL Install Bare include_recipe "mysql::client" if platform?(%w{debian ubuntu})   directory "/var/cache/local/preseeding" do     owner "root"     group "root"     mode 0755     recursive true   end package "mysql-server" do   action :install end Source : https://github.com/opscode/cookbooks
  • 38. WEBISTRANO • In simple terms, it talks to your revision control system and deploys the latest revision to the server • Allows you to rollback revisions in case you broke something • Allowsyou to deploy and rollback on Staging environments making it a breeze to update your web apps
  • 39. SAMPLE SCRIPT FOR WEBISTRANO Install Wordpress - Config CONFIG = { :application => 'site_name', :domain => 'example.com', :user => 'demo', :password => nil, :ssh_port => 12345, :use_sudo => 'false', :scm => 'subversion', :scm_username => 'demosvn', :scm_password => 'passsvn', :repository => 'svn://svnrepo.company.com/wordpress_base/', :base_theme => 'thesis_theme', :subdirectory_path => '', }
  • 40. SAMPLE SCRIPT FOR WEBISTRANO Install Wordpress - Deploy set :deploy_to, "/home/demo/#{application}" set :deploy_via, :remote_cache set :copy_exclude, [ '.svn', '.DS_Store', '*.bat', '*.exe', 'Thumbs.db', '*.sh' ] set :shared_children, %w(log media system config) after 'deploy:setup', 'deploy:sync' after 'deploy:sync', 'deploy:cleanup'
  • 41. WEBISTRANO WEB INTERFACE
  • 42. NAGIOS • Lots of plugins that are used to monitor and track different aspects of your infrastructure • APIallows interaction and “plug and play” interfaces with other services such as Chef • Configurationallows for Dashboard and reporting module to be customized to show current resources and provides enough data points for future architecture planning and reviews
  • 44. DOES THIS MAKE BUSINESS SENSE ?
  • 45. POST - EVALUATION • Reduced deployment times for scaling up servers from 5-6 hours to 5-10 minutes • Reduced IT OPEX by 56% • Allowed for Rapid Testing and Iterations • Lesser downtime overall and faster patch deployments and upgrade cycles
  • 46. CONTACT ME ISO 9001:2008, • Email : [email protected] ‘PKK Awam Kelas A’, Grade 7 CIDB • Twitter : @brianritchie • Facebook : fb.me/brianritchie • Google + : goo.gl/O8gjJ • Skype : brianritchie

Editor's Notes