Skip to content

Instantly share code, notes, and snippets.

@twisty7867
Created April 22, 2015 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twisty7867/2039061f4877897c9945 to your computer and use it in GitHub Desktop.
Save twisty7867/2039061f4877897c9945 to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
config.vm.box = "ubuntu-trusty-x64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.synced_folder ".", "/opt/marvel-ee"
config.vm.synced_folder "srv", "/srv"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.hostname = "smarvel-ee-vagrant-#{`hostname`[0..-2]}"
config.vm.provider "virtualbox" do |vb|
vb.customize [ "guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 10000 ]
end
config.vm.provision "fix-no-tty", type: "shell" do |s|
s.privileged = false
s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
end
config.vm.provision "salt", type: "salt" do |salt|
salt.pillar({
"cmdline" => {
"EnvName" => "vagrant"
}
})
salt.log_level = "warning"
salt.minion_config = "srv/minion"
salt.run_highstate = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment