Skip to content

Instantly share code, notes, and snippets.

@russmckendrick
Created April 26, 2015 14:25
Show Gist options
  • Save russmckendrick/fe714be81e68ce3be068 to your computer and use it in GitHub Desktop.
Save russmckendrick/fe714be81e68ce3be068 to your computer and use it in GitHub Desktop.
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
BOX_NAME = 'russmckendrick/centos7'
BOX_IP = '192.168.0.42'
HOSTNAME = 'testing'
DOMAIN = 'vagrant.dev'
Vagrant.require_version '>= 1.4.0'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = BOX_NAME
config.vm.network :private_network, ip: BOX_IP
config.vm.host_name = HOSTNAME + '.' + DOMAIN
config.vm.synced_folder "./share", "/share", id: "vagrant-root",
owner: "vagrant",
group: "nobody",
mount_options: ["dmode=777,fmode=755"]
config.vm.provider "virtualbox" do |v|
v.memory = 2024
v.cpus = 2
end
config.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "2024"
v.vmx["numvcpus"] = "2"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment