Slide 1

Slide 1 text

IT Automation made easy! Vagrant + Ansible 1

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

5

Slide 6

Slide 6 text

6

Slide 7

Slide 7 text

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

Slide 8

Slide 8 text

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

Slide 9

Slide 9 text

9

Slide 10

Slide 10 text

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

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

12

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

Questions? 15

Slide 16

Slide 16 text

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

Slide 17

Slide 17 text

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