Your SlideShare is downloading. ×
0
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Vagrant and CentOS 7
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Vagrant and CentOS 7

8,351

Published on

An introduction to Vagrant, using CentOS 7, given at CentOS Dojo Paris 2014 (2014/08/25).

An introduction to Vagrant, using CentOS 7, given at CentOS Dojo Paris 2014 (2014/08/25).

Published in: Technology
1 Comment
24 Likes
Statistics
Notes
No Downloads
Views
Total Views
8,351
On Slideshare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
137
Comments
1
Likes
24
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. . VVaaggrraanntt aanndd CCeennttOOSS 77 Julien Pivotto CentOS Dojo, Paris August 25, 2014
  • 2. . wwhhooaammii JJuulliieenn PPiivvoottttoo • System administrator at inuits.eu • CentOS user since CentOS 5.5 • DevOps believer • Open-source defender since 2004 • roidelapluie on twitter/github
  • 3. . • Tool to build development environments • Easy to use, easy to configure • Extensible via plugins • Supports config management utilities ▶ Chef ▶ Puppet ▶ Cfengine ▶ Docker ▶ …
  • 4. . AA bbiitt ooff ccoonntteexxtt • Born in 2010 as a ruby gem • Written by Mitchell Hashimoto (@mitchellh) • Used to be a wrapper around VirtualBox
  • 5. . WWoorrkkiinngg wwiitthhoouutt VVaaggrraanntt
  • 6. . WWoorrkkiinngg wwiitthhoouutt VVaaggrraanntt • Hard to rebuild, reproduce • No isolation • Not the same OS as in production • What if multiple versions of mysqld/java/…?
  • 7. . WWoorrkkiinngg wwiitthh VVaaggrraanntt
  • 8. . FFiixxeedd pprroobblleemmss • Easy to rebuild, reproduce • No more "Works on my machine" • Use the same OS as the production OS • Use multiple VM's if needed • Desktop OS is not full of useless config
  • 9. . DDeevveellooppmmeenntt eennvviirroonnmmeenntt • One or multiple virtual machine, container, … • Provisionned (puppet, chef, ansible, script…) • Any operating system • A lot of providers supported ▶ Virtualbox ▶ Docker ▶ AWS (plugin) ▶ KVM/Qemu (plugin) ▶ LXC (plugin) ▶ Also closed source VMWare, Hyper-V
  • 10. . AA VVaaggrraanntt bbaassee bbooxx • A VM or an image or a Dockerfile • SSH access if virtual machine • SSH user for Vagrant • Optional provisioning systems
  • 11. . vvaaggrraanntt bbooxx lliiffeeccyyccllee
  • 12. . vvaaggrraanntt bbooxx lliiffeeccyyccllee
  • 13. . vvaaggrraanntt bbooxx lliiffeeccyyccllee
  • 14. . GGeettttiinngg ssttaarrtteedd • Install Virtualbox and Vagrant • Import your first box ▶ centos.org ▶ vagrantcloud.com ▶ vagrantbox.es
  • 15. . IImmppoorrttiinngg aa VVaaggrraanntt bbaassee bbooxx
  • 16. . IImmppoorrttiinngg aa VVaaggrraanntt bbaassee bbooxx
  • 17. . vvaaggrraanntt bbooxx aadddd <<bbooxx uurrll>> • Fetches a base box • Takes an URL, a json file or a tarball as parameter • Adds it to the available base boxes • Now we can use the box at will!
  • 18. . CCrreeaattiinngg aa VVaaggrraannttffiillee
  • 19. . CCrreeaattiinngg aa VVaaggrraannttffiillee
  • 20. . vvaaggrraanntt iinniitt <<bbooxx nnaammee>> CCrreeaatteess aa ssiimmppllee VVaaggrraannttffiillee • The Vagrantfile is the configuration file • It contains the definition of the environment • It is written in ruby
  • 21. . SSiimmppllee VVaaggrraannttffiillee VAGRANTFILE_API_VERSION = "2" Vagrant.configure( VAGRANTFILE_API_VERSION ) do |config| config.vm.box = "vStone/centos

×