Guo Ruijing | 5891e10 | 2017-07-12 03:19:14 +0800 | [diff] [blame] | 1 | Vagrant.require_version ">= 1.8.6" |
| 2 | Vagrant.configure("2") do |config| |
| 3 | |
| 4 | config.vm.box = "bento/ubuntu-16.04" |
| 5 | config.vm.provider :virtualbox do |vb| |
| 6 | vb.customize ["modifyvm", :id, "--memory", 12288] |
| 7 | vb.customize ["modifyvm", :id, "--cpus", 8] |
| 8 | vb.customize "post-boot",["controlvm", :id, "setlinkstate1", "on"] |
| 9 | end |
| 10 | |
| 11 | config.vm.define "policy" do |config| |
| 12 | config.vm.hostname = "policy" |
| 13 | config.vm.network "private_network", ip: "192.168.0.10" |
| 14 | config.vm.provision "shell", path: "setup_policy.sh", privileged: false |
| 15 | end |
| 16 | |
| 17 | end |