summaryrefslogtreecommitdiff
path: root/spec/one_node
diff options
context:
space:
mode:
authorYuya Kusakabe <yuya.kusakabe@gmail.com>2017-01-25 11:44:03 +0900
committerYuya Kusakabe <yuya.kusakabe@gmail.com>2017-01-25 11:44:03 +0900
commitf96533ad763bfc35b4bf900bf77b382dd5a110ef (patch)
tree80dffd46a2e179089faf31629f64c2f871e86fa2 /spec/one_node
parentc4d05c44e50a7ce29a721231073105791e5924b9 (diff)
downloadvyos-integration-test-f96533ad763bfc35b4bf900bf77b382dd5a110ef.tar.gz
vyos-integration-test-f96533ad763bfc35b4bf900bf77b382dd5a110ef.zip
Use synbolic link for Vagrantfile
Diffstat (limited to 'spec/one_node')
l---------[-rw-r--r--]spec/one_node/Vagrantfile37
1 files changed, 1 insertions, 36 deletions
diff --git a/spec/one_node/Vagrantfile b/spec/one_node/Vagrantfile
index a218807..2572fa2 100644..120000
--- a/spec/one_node/Vagrantfile
+++ b/spec/one_node/Vagrantfile
@@ -1,36 +1 @@
-require 'yaml'
-
-configs = YAML.load_file('config.yaml')
-
-Vagrant.configure('2') do |config|
- config.vm.provider :libvirt do |libvirt|
- cpuinfo = File.read('/proc/cpuinfo')
- if cpuinfo =~ /vmx|svm/
- libvirt.cpu_mode = 'host-passthrough'
- else
- libvirt.driver = 'qemu'
- libvirt.cpu_mode = 'custom'
- libvirt.cpu_model = 'Nehalem'
- libvirt.cpu_feature name: 'vmx', policy: 'force'
- end
- end
- configs.keys.each do |host|
- config.vm.define host.to_sym do |c|
- c.vm.box = 'higebu/vyos'
- c.vm.synced_folder './', '/vagrant',
- owner: 'vagrant',
- group: 'vyattacfg',
- mount_options: ['dmode=775,fmode=775']
- c.vm.hostname = host
- if !configs[host].nil? && configs[host].key?(:networks)
- configs[host][:networks].keys.each do |net|
- c.vm.network :private_network,
- ip: configs[host][:networks][net],
- libvirt__network_name: net,
- libvirt__dhcp_enabled: false
- end
- end
- c.vm.provision 'shell', path: "#{host}_script.sh"
- end
- end
-end
+../../Vagrantfile \ No newline at end of file