Development environment like the
production in few steps
●

Software Engineer

●

Founder and CEO at Stoodos.com

●

Classic rock lover

●

LP collector

●

Beer and coffee drinker

@tiagobutzke
● “Development
environments made
easy”
● Roughly speaking, it's a
way of control a VM via
command line
Steps to start vagrant (1)
Download and install virtual box
www.virtualbox.org/wiki/Downloads
Steps to start vagrant (2)
Download and install vagrant
vagrantup.com/downloads.html
Steps to start vagrant (3)
Add a new box
www.vagrantbox.es
eg.: $ vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
Steps to start vagrant (4)
$ vagrant init
Steps to start vagrant (5)
Config VagrantFile
eg.: config.vm.box = “lucid32” # the box that we installed in step 3, remember?
Steps to start vagrant (6)
$ vagrant up
Steps to start vagrant (7)
Key Commands
● $ vagrant up: starts the VM
● $ vagrant suspend: save the machine state
and shut down the VM
● $ vagrant ssh: Access VM via SSH
● $ vagrant provision: Re-runs provision config
and start
● $ vagrant reload: Reset VM
● $ vagrant destroy: Remove VM
● “IT automation for speed
and awesomeness”
● Roughly speaking, it's a
way to automate your
environment build and
config using ruby
Cookbooks
It's a ruleset that tell Chef how to install
something
Cookbooks
● You can develop your own cookbooks
● In Github you can find several cookbooks
ready to use
Steps to add cookbooks ready (1)
Directories
eg.: $ mkdir -p {cookbooks, data_bags, roles}
Steps to add cookbooks ready (2)
Config VagrantFile
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = “cookbooks”
chef.data_bags_pash = “data_bags”
chef.roles_path = “roles”
chef.add_role = “default”
end
Steps to add cookbooks ready (3)
Init git
$ git init .
Steps to add cookbooks ready (4)
Add a cookbook
eg.: $ git submodule add https://github.com/opscode-cookbooks/apt.git cookbooks/apt
Steps to add cookbooks ready (5)
Create default roles (file roles/defaylt.rb)
name “deafult”
run_list(
“recipe[apt]”
)
Steps to add cookbooks ready (6)
Provision
If VM exists: $ vagrant provision
If not: $ vagrant up
Steps to add cookbooks ready (7)
Be happy!
Tiago Butzke
@tiagobutzke
github.com/tiagobutzke
linkedin.com/in/tiagobutzke

More Related Content

PDF
Perl containers
PDF
How to Upload File in SFC.
PPTX
Vagrant step-by-step guide for Beginners
PDF
Http2 on go1.6rc2
PDF
Skyfall b sides-c00-l-ed5-sp-2013
PDF
AdaptTo 2016 Vault Install Hooks with Groovy Console Scripts and Sling Pipes
ODP
Introduction to webGL
PDF
Vagrant are you still develop in a non-virtual environment-
Perl containers
How to Upload File in SFC.
Vagrant step-by-step guide for Beginners
Http2 on go1.6rc2
Skyfall b sides-c00-l-ed5-sp-2013
AdaptTo 2016 Vault Install Hooks with Groovy Console Scripts and Sling Pipes
Introduction to webGL
Vagrant are you still develop in a non-virtual environment-

What's hot (11)

PDF
VLC 3.0 ++
PPTX
Ruby windows
PDF
Docker and plone
PDF
Plone and docker
PDF
vmod workshop
PDF
Conhecendo o-composer-por-nandokstronet
PDF
Laravel Poznań Meetup #12 - "Speed up web API with Laravel and Swoole using ...
PDF
Dynomite Eureka Registry With Prana
PDF
Intro to Linux - Skillswap
PDF
Perl Dancer on Android (first attempt)
PPTX
CRaSH the shell for the JVM
VLC 3.0 ++
Ruby windows
Docker and plone
Plone and docker
vmod workshop
Conhecendo o-composer-por-nandokstronet
Laravel Poznań Meetup #12 - "Speed up web API with Laravel and Swoole using ...
Dynomite Eureka Registry With Prana
Intro to Linux - Skillswap
Perl Dancer on Android (first attempt)
CRaSH the shell for the JVM
Ad

Viewers also liked (6)

PDF
Testing Your Automation Code (Vagrant Version)
PPTX
Testing for infra code using test-kitchen,docker,chef
PPT
Les outils de Devops IBM
PPTX
Fits docker into devops
PPTX
Agile in de Echte Wereld- Starten met Scrum
PDF
DevOps @ InterOP Las Vegas - Jesse Robbins - Opscode
Testing Your Automation Code (Vagrant Version)
Testing for infra code using test-kitchen,docker,chef
Les outils de Devops IBM
Fits docker into devops
Agile in de Echte Wereld- Starten met Scrum
DevOps @ InterOP Las Vegas - Jesse Robbins - Opscode
Ad

Similar to Vagrant + chef's cookbooks development environment like the production in few steps (20)

PDF
Apache Kafka Setup with Zookeeper - SkillAnything.pdf
PDF
How to stay sane during your Vagrant journey
PPTX
AtoM and Vagrant: Installing and Configuring the AtoM Vagrant Box for Local T...
PDF
Vagrant in 15 minutes
PPTX
Varying WordPress Development Environment WordCamp Columbus 2016
ODP
It Works On My Machine: Vagrant for Software Development
PPTX
Vagrant 101 Workshop
PPTX
How do i update the crawford slackware box so that it is running the most up ...
PPTX
#vBrownBag OpenStack - Review & Kickoff for Phase 2
PPTX
How do I update the crawford slackware box so that it is running the most up ...
DOCX
Run Docker On Windows Using Vagrant
PPTX
Varying wordpressdevelopmentenvironment wp-campus2016
PPTX
How do i update the crawford slackware box so that it is running the most up ...
PDF
Vagrantfordevops
PPTX
V for vagrant
PDF
Vagrant for Virtualized Development
PDF
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
PDF
Take Home Your Very Own Free Vagrant CFML Dev Environment
PPTX
Os dev tool box
PDF
G3 Summit 2016 - Dockerize your Grails!
Apache Kafka Setup with Zookeeper - SkillAnything.pdf
How to stay sane during your Vagrant journey
AtoM and Vagrant: Installing and Configuring the AtoM Vagrant Box for Local T...
Vagrant in 15 minutes
Varying WordPress Development Environment WordCamp Columbus 2016
It Works On My Machine: Vagrant for Software Development
Vagrant 101 Workshop
How do i update the crawford slackware box so that it is running the most up ...
#vBrownBag OpenStack - Review & Kickoff for Phase 2
How do I update the crawford slackware box so that it is running the most up ...
Run Docker On Windows Using Vagrant
Varying wordpressdevelopmentenvironment wp-campus2016
How do i update the crawford slackware box so that it is running the most up ...
Vagrantfordevops
V for vagrant
Vagrant for Virtualized Development
Take home your very own free Vagrant CFML Dev Environment - Presented at dev....
Take Home Your Very Own Free Vagrant CFML Dev Environment
Os dev tool box
G3 Summit 2016 - Dockerize your Grails!

Recently uploaded (20)

PPTX
Communication_Skills_for_Leadership.pptx
PPTX
understanding the self chapter 5 lecture
PDF
Advanced Strains of Tilapia and potential for Aquaculture in the world by B.pdf
PDF
Man in the mirror First by Vicente E Garcés Ferrer
PPTX
PERSEVERING IN LIFE CHALLENGES- REV. EMATONG.pptx
PDF
Conducting Research in Psychology Measuring the Weight of Smoke, 5th Edition ...
PPTX
Stuctional functionalism: Understanding Society
PPT
Sanskar for Kids a cultural intervension
PPTX
INTRODUCTION-TO-PHILOSOPHY-FULL-SEM-COMPLETE.pptx
PPTX
Writing a journal and improving oneself and others
PPTX
Managing Bipolar Mood Swings—Is Xanax Safe and How Long Does It Last.pptx
PPTX
Communication_Skills_for_Leadership.pptx
PPTX
Personal Relationship- continuation.pptx
PPTX
Importance of Understanding Quran in detail.pptx
PPTX
PerDev - Personal Relationship-- P1.pptx
PPT
Thinking Critically Presentation w Exercise.ppt
PDF
The How Well Mindset: Steps to Finding Purpose and Fulfillment
PPTX
SELF ASSESSMENT Activity power point presentation
PDF
Man in the mirror Third by Vicente E Garcés Ferrer
PPTX
Leadership_Communication_Training_Pro.pptx
Communication_Skills_for_Leadership.pptx
understanding the self chapter 5 lecture
Advanced Strains of Tilapia and potential for Aquaculture in the world by B.pdf
Man in the mirror First by Vicente E Garcés Ferrer
PERSEVERING IN LIFE CHALLENGES- REV. EMATONG.pptx
Conducting Research in Psychology Measuring the Weight of Smoke, 5th Edition ...
Stuctional functionalism: Understanding Society
Sanskar for Kids a cultural intervension
INTRODUCTION-TO-PHILOSOPHY-FULL-SEM-COMPLETE.pptx
Writing a journal and improving oneself and others
Managing Bipolar Mood Swings—Is Xanax Safe and How Long Does It Last.pptx
Communication_Skills_for_Leadership.pptx
Personal Relationship- continuation.pptx
Importance of Understanding Quran in detail.pptx
PerDev - Personal Relationship-- P1.pptx
Thinking Critically Presentation w Exercise.ppt
The How Well Mindset: Steps to Finding Purpose and Fulfillment
SELF ASSESSMENT Activity power point presentation
Man in the mirror Third by Vicente E Garcés Ferrer
Leadership_Communication_Training_Pro.pptx

Vagrant + chef's cookbooks development environment like the production in few steps

  • 1. Development environment like the production in few steps
  • 2. ● Software Engineer ● Founder and CEO at Stoodos.com ● Classic rock lover ● LP collector ● Beer and coffee drinker @tiagobutzke
  • 3. ● “Development environments made easy” ● Roughly speaking, it's a way of control a VM via command line
  • 4. Steps to start vagrant (1) Download and install virtual box www.virtualbox.org/wiki/Downloads
  • 5. Steps to start vagrant (2) Download and install vagrant vagrantup.com/downloads.html
  • 6. Steps to start vagrant (3) Add a new box www.vagrantbox.es eg.: $ vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
  • 7. Steps to start vagrant (4) $ vagrant init
  • 8. Steps to start vagrant (5) Config VagrantFile eg.: config.vm.box = “lucid32” # the box that we installed in step 3, remember?
  • 9. Steps to start vagrant (6) $ vagrant up
  • 10. Steps to start vagrant (7)
  • 11. Key Commands ● $ vagrant up: starts the VM ● $ vagrant suspend: save the machine state and shut down the VM ● $ vagrant ssh: Access VM via SSH ● $ vagrant provision: Re-runs provision config and start ● $ vagrant reload: Reset VM ● $ vagrant destroy: Remove VM
  • 12. ● “IT automation for speed and awesomeness” ● Roughly speaking, it's a way to automate your environment build and config using ruby
  • 13. Cookbooks It's a ruleset that tell Chef how to install something
  • 14. Cookbooks ● You can develop your own cookbooks ● In Github you can find several cookbooks ready to use
  • 15. Steps to add cookbooks ready (1) Directories eg.: $ mkdir -p {cookbooks, data_bags, roles}
  • 16. Steps to add cookbooks ready (2) Config VagrantFile config.vm.provision :chef_solo do |chef| chef.cookbooks_path = “cookbooks” chef.data_bags_pash = “data_bags” chef.roles_path = “roles” chef.add_role = “default” end
  • 17. Steps to add cookbooks ready (3) Init git $ git init .
  • 18. Steps to add cookbooks ready (4) Add a cookbook eg.: $ git submodule add https://github.com/opscode-cookbooks/apt.git cookbooks/apt
  • 19. Steps to add cookbooks ready (5) Create default roles (file roles/defaylt.rb) name “deafult” run_list( “recipe[apt]” )
  • 20. Steps to add cookbooks ready (6) Provision If VM exists: $ vagrant provision If not: $ vagrant up
  • 21. Steps to add cookbooks ready (7)