-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVagrantfile
More file actions
22 lines (20 loc) · 795 Bytes
/
Vagrantfile
File metadata and controls
22 lines (20 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$domain_name = "project.com"
$vagrant_ip = "33.33.164.176"
$box_name = "project-virtualbox.box"
# $box_path = "http://devops.cloudspace.com/images/"
$box_path = "devops/builds/"
$cpus = 2
$memory = 2048
Vagrant.configure(2) do |config|
org = $domain_name
config.vm.box = $box_name
config.vm.box_url = File.join($box_path, $box_name)
config.ssh.private_key_path = ['devops/vagrant.pem', File.join(ENV['HOME'], '.ssh', 'id_rsa')]
config.ssh.forward_agent = true
config.vm.network "private_network", ip: $vagrant_ip
config.vm.synced_folder "./", "/srv/#{org}", :nfs => { :mount_options => ["dmode=777","fmode=777"] }
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--memory", $memory, "--name", $domain_name,"--cpus", $cpus]
# v.gui = true
end
end