Slide 1

Slide 1 text

1 milestone42 milestone42 Copyright © 2013. Sumanth Vepa. Automating Development with Vagrant and Salt

Slide 2

Slide 2 text

2 milestone42 Copyright © 2013. Sumanth Vepa This work is licensed under the Creative Commons Attribution-Share-Alike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by- sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

Slide 3

Slide 3 text

3 milestone42 milestone42 3 Setup a development environment • Quickly • Reproducibly, • and, in a Controlled way. What is Vagrant? Why Use Vagrant? • Isolate dependencies • Reproducible environment • Disposable – test and discard and recreate quickly • Versionable – keep your environment versioned • Shareable http://www.vagrantup.com/

Slide 4

Slide 4 text

4 milestone42 Using Vagrant $ mkdir vagrant-test; cd vagrant-test $ vagrant init precise32 http://files.vagrantup.com/precise32.box $ vagrant up $ vagrant ssh On the host vagrant@precise32:~$ ls /vagrant Vagrantfile On the guest $ ls ./vagrant-test Vagrantfile On the host

Slide 5

Slide 5 text

5 milestone42 Configuring the environment – simplistic Vagrantfile bootstrap.sh

Slide 6

Slide 6 text

6 milestone42 milestone42 6 (Very) Brief overview of Salt • Distributed configuration management • Rapid deployment across large numbers of hosts. • Uses Python as the implementation language. Salt master Salt minion Salt minion Salt minion

Slide 7

Slide 7 text

7 milestone42 $ vagrant plugin install vagrant-salt On the host: One additional package Configuring the environment with Salt $ cd test-vagrant $ mkdir –p ./salt/roots $ touch salt/minion $ touch salt/roots/apache.sls $ touch salt/roots/top.sls Create the salt configuration Vagrantfile

Slide 8

Slide 8 text

8 milestone42 Additions to the Vagrantfile for Salt ./salt/minion ./salt/roots/top.sls ./salt/roots/apache Configuring the environment with Salt

Slide 9

Slide 9 text

9 milestone42 milestone42 9 More information Vagrant: http://vagrantup.com Salt: http://www.saltstack.com/ Salt+Vagrant: nygaard.quora.com/Using-Vagrant-and-Salt-stack-together milestone42.com Consulting and software services for development operations and automation.