adding vagrant tester with provider lxc
Change-Id: I64a780cfde2fdcd480f912a5c8abf6bb883cd918
diff --git a/Vagrantfile b/Vagrantfile
index f890716..355105f 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -50,6 +50,19 @@
end
end
+ config.vm.define "testbox" do |d|
+ config.vm.box = "fgrehm/trusty64-lxc"
+ d.ssh.forward_agent = true
+ d.vm.hostname = "testbox"
+ d.vm.network "private_network", ip: "10.100.198.200"
+ d.vm.provision :shell, path: "scripts/bootstrap_ansible.sh"
+ d.vm.provision :shell, inline: "PYTHONUNBUFFERED=1 ansible-playbook /cord/build/ansible/corddev.yml -c local"
+ config.vm.provider :lxc do |lxc|
+ # Same effect as 'customize ["modifyvm", :id, "--memory", "1024"]' for VirtualBox
+ lxc.customize 'cgroup.memory.limit_in_bytes', '2048M'
+ end
+ end
+
(1..3).each do |i|
# Defining VM properties
config.vm.define "compute_node#{i}" do |c|