Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Intro to Vagrant + Ansible

Intro to Vagrant + Ansible

Presented at the Singapore Ruby Meetup Group on 15 July 2014.

Michael Cheng

July 15, 2014
Tweet

More Decks by Michael Cheng

Other Decks in Programming

Transcript

  1. IT Automation made easy!
    Vagrant + Ansible
    1

    View Slide

  2. Michael Cheng
    Software Engineer, Neo Innovation Inc.
    !
    http://twitter.com/coderkungfu
    http://github.com/miccheng
    http://CoderKungfu.com
    2

    View Slide

  3. Speaker Deck
    3
    http://j.mp/vagrant-ansible-demo

    View Slide

  4. What is Vagrant?
    • Management tool for development Virtual
    Machines (VirtualBox, VMWare, AWS,
    DigitalOcean).
    • Spins up a VM with a base OS installation.
    • Allow for automated pre-installation of your dev
    stack/tools in the box via a Shell Script, Puppet,
    Chef or Ansible. (Provisioning)
    • Work on files in your host OS and have it synced
    automatically to the VM.
    4

    View Slide

  5. 5

    View Slide

  6. 6

    View Slide

  7. https://github.com/miccheng/ansibledemo
    Vagrant Demo
    7

    View Slide

  8. Ansible
    • IT Automation tool
    • Bash scripts with a YAML syntax
    • Everything is a YAML file. :)
    8

    View Slide

  9. 9

    View Slide

  10. Getting Started
    • Add your SSH credentials to the server
    • Install Ansible on your machine
    • Prepare “inventory” file of all the servers
    you are managing
    10

    View Slide

  11. Running Ansible
    • Modules & ad hoc commands
    • Playbook with Roles
    • Templates (Jinja2), Variables
    • Reusable code from Ansible Galaxy
    11

    View Slide

  12. 12

    View Slide

  13. https://github.com/miccheng/ansibledemo
    Ansible Demo
    13

    View Slide

  14. TDD for DevOps
    14
    http://serverspec.org/

    View Slide

  15. Questions?
    15

    View Slide

  16. Michael Cheng
    Software Engineer, Neo Innovation Inc.
    !
    http://twitter.com/coderkungfu
    http://github.com/miccheng
    http://CoderKungfu.com
    16

    View Slide

  17. http://www.neo.com/offices/singapore/jobs
    We’re Hiring!
    17

    View Slide