Skip to content

Instantly share code, notes, and snippets.

@ashrithr
Last active July 20, 2016 01:07
Show Gist options
  • Save ashrithr/6246332 to your computer and use it in GitHub Desktop.
Save ashrithr/6246332 to your computer and use it in GitHub Desktop.
Vagrant Files
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = 2
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos/7"
config.vm.hostname = "vagrantbox"
config.vm.network :forwarded_port, host: 80, guest: 8081, auto_correct: true
config.vm.network :private_network, ip: "10.0.0.10"
config.vm.synced_folder ".", "/vagrant"
config.vm.provider :virtualbox do |vb|
vb.gui = false
vb.customize ['modifyvm', :id, '--memory', '2048']
vb.customize ["modifyvm", :id, "--cpus", "1"]
# change the network card hardware for better performance
vb.customize ["modifyvm", :id, "--nictype1", "virtio"]
end
# this requires vagrant-puppet-install plugin, install it using `vagrant plugin install vagrant-puppet-install`
config.puppet_install.puppet_version = :latest
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment