|
|
@ -26,6 +26,12 @@ Vagrant.configure("2") do |config| |
|
|
|
# argument is a set of non-required options. |
|
|
|
# config.vm.synced_folder "../data", "/vagrant_data" |
|
|
|
|
|
|
|
if Vagrant.has_plugin?('vagrant-proxyconf') |
|
|
|
config.proxy.http = ENV['HTTP_PROXY'] |
|
|
|
config.proxy.https = ENV['HTTPS_PROXY'] |
|
|
|
config.proxy.no_proxy = ENV['NO_PROXY'] |
|
|
|
end |
|
|
|
|
|
|
|
config.vm.provision 'ansible_local' do |ansible| |
|
|
|
ansible.become = true |
|
|
|
ansible.playbook = 'provision/setup.yml' |
|
|
@ -34,8 +40,6 @@ Vagrant.configure("2") do |config| |
|
|
|
config.vm.provider :lxc do |lxc, override| |
|
|
|
lxc.container_name = :machine |
|
|
|
lxc.customize 'cgroup.memory.limit_in_bytes', "#{8*1024}M" |
|
|
|
|
|
|
|
# FIXME: Use fixed MAC address |
|
|
|
# lxc.customize 'volatile.eth0.hwaddr', '00:16:3e:89:d8:6b' |
|
|
|
lxc.customize 'net.0.hwaddr', '00:16:3e:89:d8:6b' |
|
|
|
end |
|
|
|
end |