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. 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
  2. 5

  3. 6

  4. Ansible • IT Automation tool • Bash scripts with a

    YAML syntax • Everything is a YAML file. :) 8
  5. 9

  6. 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
  7. Running Ansible • Modules & ad hoc commands • Playbook

    with Roles • Templates (Jinja2), Variables • Reusable code from Ansible Galaxy 11
  8. 12