Skip to content

Instantly share code, notes, and snippets.

@lucazz
Created August 6, 2015 18:26
Show Gist options
  • Save lucazz/922bac56159c4952e96e to your computer and use it in GitHub Desktop.
Save lucazz/922bac56159c4952e96e to your computer and use it in GitHub Desktop.
Simple Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.provision "shell", inline: "echo All done"
config.vm.define "centos7" do |centos7|
centos7.vm.box = "centos7"
centos7.vm.network "private_network", ip: "172.16.15.14"
centos7.vm.network "public_network", bridge: [
"en4: Thunderbolt Ethernet",
"en0: Wi-Fi",
]
centos7.vm.synced_folder "../Downloads", "/vagrant_data"
centos7.vm.provider "vmware_fusion" do |v|
v.gui = false
v.vmx["memsize"] = "1024"
v.vmx["numvcpus"] = "1"
end
end
config.vm.define "trusty64" do |trusty64|
trusty64.vm.box = "trusty64"
trusty64.vm.network "private_network", ip: "172.16.15.13"
trusty64.vm.network "public_network", bridge: [
"en4: Thunderbolt Ethernet",
"en0: Wi-Fi",
]
#trusty64.vm.synced_folder "../Downloads", "/vagrant_data"
trusty64.vm.provider "vmware_fusion" do |v|
v.gui = false
v.vmx["memsize"] = "1024"
v.vmx["numvcpus"] = "1"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment