Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Introduction to Vagrant

Introduction to Vagrant

An overview of the components that make using vagrant worthwhile.

Carlo Costantini

June 26, 2013
Tweet

More Decks by Carlo Costantini

Other Decks in Technology

Transcript

  1. vagrant init vagrant up vagrant halt vagrant status vagrant suspend

    vagrant resume vagrant reload vagrant provision vagrant box vagrant ssh vagrant destroy Tuesday, 25 June, 13
  2. Vagrant::Config.run do |config| config.vm.box = “local-boxname” # config.vm.box_url = "http://domain.com/

    path/to/above.box" ... config.vm.provision :puppet do |puppet| puppet.manifests_path = "manifests" puppet.manifest_file = "pyvm.pp" end end Tuesday, 25 June, 13
  3. Vagrant::Config.run do |config| # config.vm.box = “local-boxname” config.vm.box_url = "http://domain.com/

    path/to/above.box" ... config.vm.provision :puppet do |puppet| puppet.manifests_path = "manifests" puppet.manifest_file = "manifest.pp" end end Tuesday, 25 June, 13
  4. Vagrant::Config.run do |config| config.vm.box = “local-boxname” # config.vm.box_url = "http://domain.com/

    path/to/above.box" ... config.vm.provision :puppet do |puppet| puppet.manifests_path = "manifests" puppet.manifest_file = "manifest.pp" end end Tuesday, 25 June, 13
  5. package { "nginx": ensure => installed, } service { "nginx":

    enable => true, } # An erb that currently has no logic file { "/etc/nginx/nginx.conf": content => template("nginx/etc/nginx/ nginx.conf.erb"), owner => nginx, group => nginx, require => Package["nginx"], } Tuesday, 25 June, 13
  6. package { "nginx": ensure => installed, } service { "nginx":

    enable => true, } # An erb that currently has no logic file { "/etc/nginx/nginx.conf": content => template("nginx/etc/nginx/ nginx.conf.erb"), owner => nginx, group => nginx, require => Package["nginx"], } Tuesday, 25 June, 13
  7. package { "nginx": ensure => installed, } service { "nginx":

    enable => true, } # An erb that currently has no logic file { "/etc/nginx/nginx.conf": content => template("nginx/etc/nginx/ nginx.conf.erb"), owner => nginx, group => nginx, require => Package["nginx"], } Tuesday, 25 June, 13
  8. package { "nginx": ensure => installed, } service { "nginx":

    enable => true, } # An erb that currently has no logic file { "/etc/nginx/nginx.conf": content => template("nginx/etc/nginx/ nginx.conf.erb"), owner => nginx, group => nginx, require => Package["nginx"], } Tuesday, 25 June, 13
  9. class nginx { package { "nginx": ensure => installed, }

    service { "nginx": enable => true, } ... } Tuesday, 25 June, 13