forked from retr0h/vagrant-devstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
28 lines (22 loc) · 699 Bytes
/
Vagrantfile
File metadata and controls
28 lines (22 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# -*- mode: ruby -*-
# vi: set ft=ruby :
map = {
'fedora' => 'todo', # Fedora 20
'rhel' => 'todo', # CentOS/RHEL 6.5
'centos' => 'todo',
'ubuntu' => 'hashicorp/precise64'
}
box = map[(ENV['DISTRO'] || 'ubuntu').downcase]
Vagrant.configure("2") do |config|
config.vm.box = box
vm_name = "#{box.split(/\//)[1]}"
config.vm.define vm_name do |c|
c.vm.host_name = vm_name
c.vm.network 'private_network', ip: '192.168.50.11' # eth1
end
config.vm.provider 'virtualbox' do |p|
p.customize ['modifyvm', :id, '--memory', '2048']
end
#config.vm.provision 'shell', inline: 'apt-get update; apt-get upgrade --yes'
#config.vm.provision 'shell', :path => 'vagrant.sh'
end