Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 4th, 2013  |  syntax: None  |  size: 1.43 KB  |  views: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Vagrant.configure("2") do |config|
  2.   config.vm.box = "debian-wheezy72-x64-vbox43"
  3.   config.vm.box_url = "https://puphpet.s3.amazonaws.com/debian-wheezy72-x64-vbox43.box"
  4.  
  5.   config.vm.network "private_network", ip: "10.0.0.100"
  6.  
  7.  
  8.   config.vm.synced_folder "./app", "/var/www", id: "vagrant-root", :nfs => false, :mount_options => ["dmode=777", "fmode=666"]
  9.  
  10.   config.vm.usable_port_range = (2200..2250)
  11.   config.vm.provider :virtualbox do |virtualbox|
  12.     virtualbox.customize ["modifyvm", :id, "--name", "amzn"]
  13.     virtualbox.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
  14.     virtualbox.customize ["modifyvm", :id, "--memory", "1024"]
  15.     virtualbox.customize ["setextradata", :id, "--VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
  16.   end
  17.  
  18.   config.vm.provision :shell, :path => "shell/initial-setup.sh"
  19.   config.vm.provision :shell, :path => "shell/update-puppet.sh"
  20.   config.vm.provision :shell, :path => "shell/librarian-puppet-vagrant.sh"
  21.   config.vm.provision :puppet do |puppet|
  22.     puppet.facter = {
  23.       "ssh_username" => "vagrant"
  24.     }
  25.  
  26.     puppet.manifests_path = "puppet/manifests"
  27.     puppet.options = ["--verbose", "--hiera_config /vagrant/hiera.yaml", "--parser future"]
  28.   end
  29.  
  30.  
  31.  
  32.  
  33.   config.ssh.username = "vagrant"
  34.  
  35.   config.ssh.shell = "bash -l"
  36.  
  37.   config.ssh.keep_alive = true
  38.   config.ssh.forward_agent = false
  39.   config.ssh.forward_x11 = false
  40.   config.vagrant.host = :detect
  41. end