DevOps
Vagrant & Ansible
Why ?
Code As Infrastructure
Because luck has no place
WHY ?
Installing development environment –
no worries
Prevent your computer from being
ruined
Team efficiency
Remove the pain of software
deployment
Prevents inadvertent errors
Avoids annoying tasks
It works on my machine !
Certification program
• Compile your application code. Getting the latest version of
any recent code changes from other developers is purely
optional and not a requirement for certification.
• Launch the application or website that has just been
compiled.
• Cause one code path in the code you're checking in to be
executed. The preferred way to do this is with ad-hoc
manual testing of the simplest possible case for the feature
in question. Omit this step if the code change was less than
five lines, or if, in the developer's professional opinion, the
code change could not possibly result in an error.
• Check the code changes into your version control system.
http://blog.codinghorror.com/the-works-on-my-machine-certification-program/
HOW ?
Know State & Consistency
State A
Provisioning
State B
Idempotence & Repeatability
State B
Provisioning
State B
Now you should say
Meet the tools
a very opinionated presentation
The VM manager
Vagrant
The provisioning tool
• It configures the machine (installs stuff, push
config files, etc.)
– Puppet
– Chef
– Ansible
– Salt
– … ?
The deployment tool
• It pushes the project on the server (&
configures it, runs migration, clears caches, …)
– Capistrano (and it can deploy non ruby
applications)
– Two ways informations transferts (DB sync, logs…)
Summary
VMmanagement
Vagrant
Systemconfiguration
Ansible
Applicationdeployment
Capistrano
Where is Docker ?
Well…Pre-provisionedVM
Docker
Applicationdeployment
Capistrano
Why we don’t use docker ?
• Because you need a specific cloud provider…
And we deploy our apps in the customer
datacenter on various systems.
• But maybe, one day…
So why Ansible and not
puppet/chef/… ?
• Simple (its just Yaml)
• Agent less
• Runs on every dev machine (python +
openssh, yeah that means you don’t need
ruby)
• Push based
• Made in Durham
How it works ?
Vagrant
• A Vagrant File contains :
– Provider
– Sharing folder instruction
– Networking configuration (port forwarding)
– (optionnal) Provisionner
DevOps, A brief introduction to Vagrant & Ansible
Ansible
• Hosts
• Variables
• Roles
Playbook.yml
Rôles
Rôles (again)
Tasks
Templates
Handlers
Files
• It’s just for copy/paste !
DevOps, A brief introduction to Vagrant & Ansible
DevOps, A brief introduction to Vagrant & Ansible
Vagrant + ansible skeleton
• https://github.com/Ibsciss/vagrant-ansible-php
Where do I put all of this stuff ?
in its own branch
Does & Don’ts
It’s also opinionated
DevOps, A brief introduction to Vagrant & Ansible
• Don’t: Make snowflake VM : you become
dependant of the VM management tool
• Do: Separate provisioning
• Don’t: Use Vagrant default SSH key in
production !
• Don’t: Separate dev & ops
• Don’t: Try to eliminate admin sys (you need
hero)
• Do: Use same environment for Dev/test/prod
Let’s deploy !
Questions ?
Thank you !

More Related Content

PPTX
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
PDF
Ansible
PPTX
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
PDF
Ansible Case Studies
PDF
Ansible - A 'crowd' introduction
PDF
DevOps for Humans - Ansible for Drupal Deployment Victory!
PDF
DevOps with Ansible
PPTX
Go Faster with Ansible (PHP meetup)
Ansible Tutorial For Beginners | What Is Ansible And How It Works? | Ansible ...
Ansible
What Is Ansible? | How Ansible Works? | Ansible Tutorial For Beginners | DevO...
Ansible Case Studies
Ansible - A 'crowd' introduction
DevOps for Humans - Ansible for Drupal Deployment Victory!
DevOps with Ansible
Go Faster with Ansible (PHP meetup)

What's hot (20)

PDF
Ansible - Hands on Training
PDF
Ansible Automation to Rule Them All
PPTX
Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12
PDF
Network Automation with Ansible
PDF
Ansible Introduction
PDF
Ansible introduction - XX Betabeers Galicia
PDF
Ansible Intro - June 2015 / Ansible Barcelona User Group
PDF
Introduction to Ansible (Pycon7 2016)
PPTX
Infrastructure Automation with Chef & Ansible
PPTX
Hands on ansible
PDF
How Ansible Makes Automation Easy
PDF
A quick intro to Ansible
PPTX
Ansible module development 101
PDF
Ansible 2 and Ansible Galaxy 2
PDF
Introduction to ansible galaxy
PPTX
Network automation (NetDevOps) with Ansible
PDF
Introducing Ansible
PDF
infra-as-code
PDF
Application Deployment Using Ansible
Ansible - Hands on Training
Ansible Automation to Rule Them All
Ansible Automation Best Practices From Startups to Enterprises - Minnebar 12
Network Automation with Ansible
Ansible Introduction
Ansible introduction - XX Betabeers Galicia
Ansible Intro - June 2015 / Ansible Barcelona User Group
Introduction to Ansible (Pycon7 2016)
Infrastructure Automation with Chef & Ansible
Hands on ansible
How Ansible Makes Automation Easy
A quick intro to Ansible
Ansible module development 101
Ansible 2 and Ansible Galaxy 2
Introduction to ansible galaxy
Network automation (NetDevOps) with Ansible
Introducing Ansible
infra-as-code
Application Deployment Using Ansible
Ad

Viewers also liked (8)

PDF
DevOps in the Cloud with Microsoft Azure
PDF
Using Groovy with Jenkins
PDF
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
PDF
DevOps(4) : Ansible(2) - (MOSG)
PDF
Introduzione DevOps con Ansible
PDF
Ansible is the simplest way to automate. MoldCamp, 2015
PDF
Ansible
PPT
Ansible presentation
DevOps in the Cloud with Microsoft Azure
Using Groovy with Jenkins
DevOpsDaysCPT Ansible Infrastrucutre as Code 2017
DevOps(4) : Ansible(2) - (MOSG)
Introduzione DevOps con Ansible
Ansible is the simplest way to automate. MoldCamp, 2015
Ansible
Ansible presentation
Ad

Similar to DevOps, A brief introduction to Vagrant & Ansible (20)

PDF
Automating with ansible (Part B)
PDF
DevOps introduction with ansible, vagrant, and docker
PDF
DevOps introduction with ansible, vagrant, and docker
PDF
Create Development and Production Environments with Vagrant
PPTX
Vagrant to-aws-flow
PPT
Fake IT, until you make IT
PDF
Vagrant Workshop
PDF
Mihai Criveti - PyCon Ireland - Automate Everything
PDF
Vagrant - Version control your dev environment
PDF
ShipItCon - Continuous Deployment and Multicloud with Ansible and Kubernetes
PPT
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
PDF
Virtualization with Vagrant (ua.pycon 2011)
PPTX
Ansible E2E Testing
PPTX
Development with Vagrant
PDF
Vagrant + Ansible + Docker
PDF
Keep calm and vagrant up
PDF
Vagrant for Effective DevOps Culture
ODP
Vagrant and puppet: Deployment made easy
PDF
Using Vagrant, Puppet, Testing & Hadoop
PDF
PuppetCamp SEA 1 - Using Vagrant, Puppet, Testing & Hadoop
Automating with ansible (Part B)
DevOps introduction with ansible, vagrant, and docker
DevOps introduction with ansible, vagrant, and docker
Create Development and Production Environments with Vagrant
Vagrant to-aws-flow
Fake IT, until you make IT
Vagrant Workshop
Mihai Criveti - PyCon Ireland - Automate Everything
Vagrant - Version control your dev environment
ShipItCon - Continuous Deployment and Multicloud with Ansible and Kubernetes
Local Dev on Virtual Machines - Vagrant, VirtualBox and Ansible
Virtualization with Vagrant (ua.pycon 2011)
Ansible E2E Testing
Development with Vagrant
Vagrant + Ansible + Docker
Keep calm and vagrant up
Vagrant for Effective DevOps Culture
Vagrant and puppet: Deployment made easy
Using Vagrant, Puppet, Testing & Hadoop
PuppetCamp SEA 1 - Using Vagrant, Puppet, Testing & Hadoop

Recently uploaded (20)

PPTX
Why 2025 Is the Best Year to Hire Software Developers in India
PPTX
Chapter_05_System Modeling for software engineering
PPTX
Swiggy API Scraping A Comprehensive Guide on Data Sets and Applications.pptx
PPTX
Chapter 1 - Transaction Processing and Mgt.pptx
PDF
infoteam HELLAS company profile 2025 presentation
PDF
Mobile App Backend Development with WordPress REST API: The Complete eBook
PPTX
Independent Consultants’ Biggest Challenges in ERP Projects – and How Apagen ...
PDF
Crypto Loss And Recovery Guide By Expert Recovery Agency.
PPTX
Human-Computer Interaction for Lecture 1
PPTX
Comprehensive Guide to Digital Image Processing Concepts and Applications
PPTX
FLIGHT TICKET API | API INTEGRATION PLATFORM
PDF
solman-7.0-ehp1-sp21-incident-management
PDF
SOFTWARE ENGINEERING Software Engineering (3rd Edition) by K.K. Aggarwal & Yo...
PPTX
SAP Business AI_L1 Overview_EXTERNAL.pptx
PPTX
Folder Lock 10.1.9 Crack With Serial Key
PPTX
ESDS_SAP Application Cloud Offerings.pptx
PDF
Streamlining Project Management in Microsoft Project, Planner, and Teams with...
PDF
Module 1 - Introduction to Generative AI.pdf
PDF
Top 10 Project Management Software for Small Teams in 2025.pdf
PDF
Ragic Data Security Overview: Certifications, Compliance, and Network Safegua...
Why 2025 Is the Best Year to Hire Software Developers in India
Chapter_05_System Modeling for software engineering
Swiggy API Scraping A Comprehensive Guide on Data Sets and Applications.pptx
Chapter 1 - Transaction Processing and Mgt.pptx
infoteam HELLAS company profile 2025 presentation
Mobile App Backend Development with WordPress REST API: The Complete eBook
Independent Consultants’ Biggest Challenges in ERP Projects – and How Apagen ...
Crypto Loss And Recovery Guide By Expert Recovery Agency.
Human-Computer Interaction for Lecture 1
Comprehensive Guide to Digital Image Processing Concepts and Applications
FLIGHT TICKET API | API INTEGRATION PLATFORM
solman-7.0-ehp1-sp21-incident-management
SOFTWARE ENGINEERING Software Engineering (3rd Edition) by K.K. Aggarwal & Yo...
SAP Business AI_L1 Overview_EXTERNAL.pptx
Folder Lock 10.1.9 Crack With Serial Key
ESDS_SAP Application Cloud Offerings.pptx
Streamlining Project Management in Microsoft Project, Planner, and Teams with...
Module 1 - Introduction to Generative AI.pdf
Top 10 Project Management Software for Small Teams in 2025.pdf
Ragic Data Security Overview: Certifications, Compliance, and Network Safegua...

DevOps, A brief introduction to Vagrant & Ansible

Editor's Notes

  • #9: If its broken something, you repair once the others members can just update the env
  • #29: We use Capistrano, so you finally we have to use Ruby