SlideShare a Scribd company logo
milestone42

Automating Development with
Vagrant and Salt
1

milestone42
Copyright © 2013. Sumanth Vepa.
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/bysa/3.0/ or send a letter to Creative Commons,
171 Second Street, Suite 300, San Francisco,
California, 94105, USA.

2

milestone42
What is Vagrant?

Why Use Vagrant?

http://www.vagrantup.com/

• Isolate dependencies

Setup a development environment
• Quickly
• Reproducibly,
• and, in a Controlled way.

• Reproducible environment
• Disposable – test and
discard and recreate
quickly
• Versionable – keep your
environment versioned
• Shareable

3

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

On the guest
vagrant@precise32:~$ ls /vagrant
Vagrantfile

4

On the host
$ ls ./vagrant-test
Vagrantfile

milestone42
Configuring the environment – simplistic

Vagrantfile

bootstrap.sh

5

milestone42
(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

6

Salt
minion

Salt
minion

milestone42
Configuring the environment with Salt
On the host: One additional package
$ vagrant plugin install vagrant-salt

Create the salt configuration
$ cd test-vagrant
$ mkdir –p ./salt/roots
$ touch salt/minion
$ touch salt/roots/apache.sls
$ touch salt/roots/top.sls

Vagrantfile

7

milestone42
Configuring the environment with Salt
Additions to the Vagrantfile for Salt

./salt/minion

8

./salt/roots/top.sls

./salt/roots/apache

milestone42
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.
9

milestone42

More Related Content

PDF
Meetup - An introduction to Salt
PPTX
Getting Started with Vagrant
PDF
DevStack
PDF
FreeBSD: Dev to Prod
PDF
Professional Workflow from Development to Deployment
PPTX
Vagrant & Reusable Code
PDF
Virtualize and automate your development environment for fun and profit
PDF
ConFoo 2016: Development to Deployment
Meetup - An introduction to Salt
Getting Started with Vagrant
DevStack
FreeBSD: Dev to Prod
Professional Workflow from Development to Deployment
Vagrant & Reusable Code
Virtualize and automate your development environment for fun and profit
ConFoo 2016: Development to Deployment

Similar to Automating Development Operations with Vagrant and Salt (the 5min intro) (20)

PDF
Vagrant for local and team WordPress Development
PDF
Vagrant in 15 minutes
PDF
How do you implement Continuous Delivery?: Part 5 - Deployment Patterns
PDF
How do you implement Continuous Delivery?: Part 5 - Deployment Patterns
PDF
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
PDF
DevOps: Using Vagrant to Enhance Your Day to Day Development
PPTX
Subversion on-the-fly replication
PPTX
Vagrant-Overview
PPTX
Open Source Security Tools for the Pipeline
PDF
Unlocked Nov 2013: Main Slide Pack
PDF
Vagrant workshop 2015
PDF
The future of the php development environment
PPTX
Concurrent version management(tortoise CVS)
PDF
Vagrant - the essence of DevOps in a tool
PDF
2014-10-30 Taverna as an Apache Incubator project
PDF
Maven 3.0 at Øredev
PPT
Vagrant
PDF
Take Home Your Very Own Free Vagrant CFML Dev Environment
PDF
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
PDF
Automating web site deployment
Vagrant for local and team WordPress Development
Vagrant in 15 minutes
How do you implement Continuous Delivery?: Part 5 - Deployment Patterns
How do you implement Continuous Delivery?: Part 5 - Deployment Patterns
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps: Using Vagrant to Enhance Your Day to Day Development
Subversion on-the-fly replication
Vagrant-Overview
Open Source Security Tools for the Pipeline
Unlocked Nov 2013: Main Slide Pack
Vagrant workshop 2015
The future of the php development environment
Concurrent version management(tortoise CVS)
Vagrant - the essence of DevOps in a tool
2014-10-30 Taverna as an Apache Incubator project
Maven 3.0 at Øredev
Vagrant
Take Home Your Very Own Free Vagrant CFML Dev Environment
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Automating web site deployment
Ad

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Encapsulation theory and applications.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
KodekX | Application Modernization Development
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Cloud computing and distributed systems.
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Electronic commerce courselecture one. Pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Encapsulation theory and applications.pdf
Network Security Unit 5.pdf for BCA BBA.
KodekX | Application Modernization Development
Diabetes mellitus diagnosis method based random forest with bat algorithm
“AI and Expert System Decision Support & Business Intelligence Systems”
Cloud computing and distributed systems.
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Understanding_Digital_Forensics_Presentation.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
NewMind AI Weekly Chronicles - August'25 Week I
Review of recent advances in non-invasive hemoglobin estimation
Electronic commerce courselecture one. Pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Ad

Automating Development Operations with Vagrant and Salt (the 5min intro)

  • 1. milestone42 Automating Development with Vagrant and Salt 1 milestone42 Copyright © 2013. Sumanth Vepa.
  • 2. 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/bysa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA. 2 milestone42
  • 3. What is Vagrant? Why Use Vagrant? http://www.vagrantup.com/ • Isolate dependencies Setup a development environment • Quickly • Reproducibly, • and, in a Controlled way. • Reproducible environment • Disposable – test and discard and recreate quickly • Versionable – keep your environment versioned • Shareable 3 milestone42
  • 4. Using Vagrant On the host $ mkdir vagrant-test; cd vagrant-test $ vagrant init precise32 http://files.vagrantup.com/precise32.box $ vagrant up $ vagrant ssh On the guest vagrant@precise32:~$ ls /vagrant Vagrantfile 4 On the host $ ls ./vagrant-test Vagrantfile milestone42
  • 5. Configuring the environment – simplistic Vagrantfile bootstrap.sh 5 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 6 Salt minion Salt minion milestone42
  • 7. Configuring the environment with Salt On the host: One additional package $ vagrant plugin install vagrant-salt Create the salt configuration $ cd test-vagrant $ mkdir –p ./salt/roots $ touch salt/minion $ touch salt/roots/apache.sls $ touch salt/roots/top.sls Vagrantfile 7 milestone42
  • 8. Configuring the environment with Salt Additions to the Vagrantfile for Salt ./salt/minion 8 ./salt/roots/top.sls ./salt/roots/apache 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. 9 milestone42