]> git.proxmox.com Git - mirror_ovs.git/blob - Vagrantfile.in
ba10ede82fafc88949bea50cc7bef3c164dcb2e6
[mirror_ovs.git] / Vagrantfile.in
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5 VAGRANTFILE_API_VERSION = "2"
6
7 $bootstrap_fedora = <<SCRIPT
8 yum -y update
9 yum -y install autoconf automake openssl-devel libtool \
10 python-twisted-core python-zope-interface PyQt4 \
11 desktop-file-utils groff graphviz rpmdevtools
12 cd /vagrant
13 ./boot.sh && ./configure
14 make clean && make dist
15 rpmdev-setuptree
16 cp openvswitch-@PACKAGE_VERSION@.tar.gz $HOME/rpmbuild/SOURCES
17 rpmbuild --bb --without check rhel/openvswitch-fedora.spec
18 rpm -e openvswitch
19 rpm -ivh $HOME/rpmbuild/RPMS/x86_64/openvswitch-@PACKAGE_VERSION@-1.fc20.x86_64.rpm
20 systemctl enable openvswitch
21 systemctl start openvswitch
22 systemctl status openvswitch
23 SCRIPT
24
25 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
26 config.vm.define "fedora-20" do |fedora|
27 fedora.vm.box = "chef/fedora-20"
28 fedora.vm.provision :shell, inline: $bootstrap_fedora
29 end
30 end