SlideShare a Scribd company logo
INFRASTRUCTURE AS CODE
Andre Sachs
andre@cloudafrica.net
#NGTCONF
WHO AM I ?
Started work in the ISP space in 1996
Open Source integration specialist
15 Year Development
19Years Ops
Large scale deployments > 2000 servers
Site Reliability Engineer at CloudAfrica
OVERVIEW
Why Infrastructure As Code ?
What is Infrastructure As Code ?
Key Concepts
Ansible Highlights
ServerSpec Highlights
Demo
BUT FIRST A QUICK SURVEY
How many of you are developers ?
How many of you are sysadmins ?
Who still SSH’s/RD’s to servers to make changes ?
Anyone script changes to your environment ?
Anyone heard of configuration management or is practising it ?
Anyone using Ansible or ServerSpec ?
4
WHY INFRASTRUCTURE AS
CODE ?
Repeatability
Speed
Accuracy
Testability
Agility
WHAT IS INFRASTRUCTURE AS
CODE ?
The essence of Infrastructure as Code is to treat the configuration and definition of
systems just like writing software
Source code management systems are used to understand changes over time
Leverage Test Driven Development (TDD) of environments
Apply Continuous Integration (CI)
Constant refactoring
Validation
and other XP practices are especially useful for making sure that changes to infrastructure
are thoroughly tested, repeatable, and transparent.
6
CASE STUDY - WEALTHFRONT
Wealthfront is an invest management business
In early 2011 - Infrastructure redesign and reimplement every
two weeks, from the ground up in AWS
While managing really world money (about $180M at the time)
Now have more than $2.5B under management
Time to get code into production +- 10 minutes, including fully
automated testing
Infrastructure As Code - NextGen Testing 2015
KEY CONCEPTS
Atoms that make up systems
Files
Packages
Services
9
KEY CONCEPTS
Starting state > Convergence > Desired state
Fact discovery
Idempotent - can be applied multiple times without changing result
Multi-host orchestration
Repeatability
Speed
10
Infrastructure As Code - NextGen Testing 2015
ANSIBLE HIGHLIGHTS
Open Source (GNU GPL)
Agentless (Including Windows using WinRM and PowerShell) !
Easy to write and read (YAML)
Configuration management, App deployment, Orchestration, Provisioning
Secure - Runs over SSH
CLI based
Expensive Web Interface to appease Corporate Overlords - ANSIBLE TOWER
Open Source Web Interface is starting to gain some ground - SEMAPHORE
12
SEVERSPEC OVERVIEW
Open Source (MIT License)
Serverspec tests your servers' actual state by executing
command locally, via SSH, via WinRM, via Docker API
So you don't need to install any agent softwares on your servers
and can use any configuration management tools, Puppet,
Ansible, CFEngine, Itamae
But the true aim of Serverspec is to help refactoring
infrastructure code.
DEMO!
14
Code Examples available at:
https://github.com/CloudAfrica/Talk_Infrastructure_As_Code
THANKS !
www.ansible.com
Code is at :
https://github.com/CloudAfrica/Talk_Infrastructure_As_Code/
Books
https://leanpub.com/ansible-for-devops
O’reilly - Ansible Up and Running
serverspec.org
15
#NGTCONF

More Related Content

PDF
Tower 3.x
PDF
Deploying Plone on AWS
PDF
Short journey into the serverless world
PPTX
Romulus crisan + radu pascal click'n'deploy
PPTX
DockerCon 17 EU: Modernizing .NET Apps with Docker
PPTX
Linuxing in London: Docker Intro Workshop
PPTX
Xpirit MeetUp: Docker Windows Workshop
PDF
fmcsadmin 1.0.0
Tower 3.x
Deploying Plone on AWS
Short journey into the serverless world
Romulus crisan + radu pascal click'n'deploy
DockerCon 17 EU: Modernizing .NET Apps with Docker
Linuxing in London: Docker Intro Workshop
Xpirit MeetUp: Docker Windows Workshop
fmcsadmin 1.0.0

What's hot (20)

PDF
PuppetConf 2016 Customer Keynote: Cloud, Containers & the Impact on IT - Jeff...
PDF
Look Towards 2.0 and Beyond - eZ Conference 2016
PPTX
How to Adopt Infrastructure as Code
PPTX
What's New in Puppet Enterprise 2016.4
PPTX
Introduction to Puppet Enterprise 2016.4
PPTX
DockerCon EU 2017 - Docker on Windows workshop
PDF
How we found a firewall vendor bug using Teleport as a bastion jump host
PDF
Reflections On Serverless
PPTX
Introduction to Puppet Enterprise
PPTX
Click’n’Deploy | SuperSpeakers @CodeCamp Iasi, 2014
PPTX
ScotSoft 2017: Why Containers Will Take Over the World
PPTX
Controlled Evolution with Puppet and AWS
PPTX
IP EXPO London 2017: Modernizing Traditional Apps with Docker
PPTX
Release Often Release Safely
PPTX
ContainerSched 2017: Why Containers Will Take Over the World
PPTX
What's New in Puppet Enterprise 2016.4
PPTX
The Velvet Revolution: Modernizing Traditional ASP.NET Apps with Docker
PDF
Open source and cross platform .net
PDF
OpenShift on IBM Cloud BMS
PPTX
Network Automation at Shapeways
PuppetConf 2016 Customer Keynote: Cloud, Containers & the Impact on IT - Jeff...
Look Towards 2.0 and Beyond - eZ Conference 2016
How to Adopt Infrastructure as Code
What's New in Puppet Enterprise 2016.4
Introduction to Puppet Enterprise 2016.4
DockerCon EU 2017 - Docker on Windows workshop
How we found a firewall vendor bug using Teleport as a bastion jump host
Reflections On Serverless
Introduction to Puppet Enterprise
Click’n’Deploy | SuperSpeakers @CodeCamp Iasi, 2014
ScotSoft 2017: Why Containers Will Take Over the World
Controlled Evolution with Puppet and AWS
IP EXPO London 2017: Modernizing Traditional Apps with Docker
Release Often Release Safely
ContainerSched 2017: Why Containers Will Take Over the World
What's New in Puppet Enterprise 2016.4
The Velvet Revolution: Modernizing Traditional ASP.NET Apps with Docker
Open source and cross platform .net
OpenShift on IBM Cloud BMS
Network Automation at Shapeways
Ad

Similar to Infrastructure As Code - NextGen Testing 2015 (20)

PDF
Cloud infrastructure as code
PPTX
Infrastructure as Code
PPTX
Infrastrucutre as Code
PDF
Infrastructure as Code with Ansible
PDF
Infrastructure as Code 101: Steve Tegeler + Nathan Ness, VMware
PPTX
Infrastructure as Code with Terraform on AWS
PDF
DevOps Fest 2020. immutable infrastructure as code. True story.
PDF
Infrastructure as Code with Terraform and Ansible
PDF
Inrastructure as Code
PPTX
Infrastructure as code
PDF
Infrastructure as code managing servers in the cloud Morris
PPTX
iac.pptx
PPTX
Infrastructure as Code - Getting Started, Concepts & Tools
PDF
Infrastructure as code managing servers in the cloud Morris
PDF
Infrastructure as code managing servers in the cloud Morris 2024 scribd download
PDF
Infrastructure as Code
PDF
Infrastructure = Code
PDF
Infrastructure as Code
PDF
Infrastructure as Code
PDF
Infrastructure as code
Cloud infrastructure as code
Infrastructure as Code
Infrastrucutre as Code
Infrastructure as Code with Ansible
Infrastructure as Code 101: Steve Tegeler + Nathan Ness, VMware
Infrastructure as Code with Terraform on AWS
DevOps Fest 2020. immutable infrastructure as code. True story.
Infrastructure as Code with Terraform and Ansible
Inrastructure as Code
Infrastructure as code
Infrastructure as code managing servers in the cloud Morris
iac.pptx
Infrastructure as Code - Getting Started, Concepts & Tools
Infrastructure as code managing servers in the cloud Morris
Infrastructure as code managing servers in the cloud Morris 2024 scribd download
Infrastructure as Code
Infrastructure = Code
Infrastructure as Code
Infrastructure as Code
Infrastructure as code
Ad

Infrastructure As Code - NextGen Testing 2015

  • 1. INFRASTRUCTURE AS CODE Andre Sachs andre@cloudafrica.net #NGTCONF
  • 2. WHO AM I ? Started work in the ISP space in 1996 Open Source integration specialist 15 Year Development 19Years Ops Large scale deployments > 2000 servers Site Reliability Engineer at CloudAfrica
  • 3. OVERVIEW Why Infrastructure As Code ? What is Infrastructure As Code ? Key Concepts Ansible Highlights ServerSpec Highlights Demo
  • 4. BUT FIRST A QUICK SURVEY How many of you are developers ? How many of you are sysadmins ? Who still SSH’s/RD’s to servers to make changes ? Anyone script changes to your environment ? Anyone heard of configuration management or is practising it ? Anyone using Ansible or ServerSpec ? 4
  • 5. WHY INFRASTRUCTURE AS CODE ? Repeatability Speed Accuracy Testability Agility
  • 6. WHAT IS INFRASTRUCTURE AS CODE ? The essence of Infrastructure as Code is to treat the configuration and definition of systems just like writing software Source code management systems are used to understand changes over time Leverage Test Driven Development (TDD) of environments Apply Continuous Integration (CI) Constant refactoring Validation and other XP practices are especially useful for making sure that changes to infrastructure are thoroughly tested, repeatable, and transparent. 6
  • 7. CASE STUDY - WEALTHFRONT Wealthfront is an invest management business In early 2011 - Infrastructure redesign and reimplement every two weeks, from the ground up in AWS While managing really world money (about $180M at the time) Now have more than $2.5B under management Time to get code into production +- 10 minutes, including fully automated testing
  • 9. KEY CONCEPTS Atoms that make up systems Files Packages Services 9
  • 10. KEY CONCEPTS Starting state > Convergence > Desired state Fact discovery Idempotent - can be applied multiple times without changing result Multi-host orchestration Repeatability Speed 10
  • 12. ANSIBLE HIGHLIGHTS Open Source (GNU GPL) Agentless (Including Windows using WinRM and PowerShell) ! Easy to write and read (YAML) Configuration management, App deployment, Orchestration, Provisioning Secure - Runs over SSH CLI based Expensive Web Interface to appease Corporate Overlords - ANSIBLE TOWER Open Source Web Interface is starting to gain some ground - SEMAPHORE 12
  • 13. SEVERSPEC OVERVIEW Open Source (MIT License) Serverspec tests your servers' actual state by executing command locally, via SSH, via WinRM, via Docker API So you don't need to install any agent softwares on your servers and can use any configuration management tools, Puppet, Ansible, CFEngine, Itamae But the true aim of Serverspec is to help refactoring infrastructure code.
  • 14. DEMO! 14 Code Examples available at: https://github.com/CloudAfrica/Talk_Infrastructure_As_Code
  • 15. THANKS ! www.ansible.com Code is at : https://github.com/CloudAfrica/Talk_Infrastructure_As_Code/ Books https://leanpub.com/ansible-for-devops O’reilly - Ansible Up and Running serverspec.org 15 #NGTCONF