]> git.proxmox.com Git - mirror_ovs.git/blame - Vagrantfile.in
vlog: Rename the currently used term 'facility' as 'destination'.
[mirror_ovs.git] / Vagrantfile.in
CommitLineData
1ce96d2a
TG
1# -*- mode: ruby -*-
2# vi: set ft=ruby :
3
4# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5VAGRANTFILE_API_VERSION = "2"
6
7$bootstrap_fedora = <<SCRIPT
8yum -y update
9yum -y install autoconf automake openssl-devel libtool \
10 python-twisted-core python-zope-interface PyQt4 \
11 desktop-file-utils groff graphviz rpmdevtools
12cd /vagrant
13./boot.sh && ./configure
14make clean && make dist
15rpmdev-setuptree
16cp openvswitch-@PACKAGE_VERSION@.tar.gz $HOME/rpmbuild/SOURCES
17rpmbuild --bb --without check rhel/openvswitch-fedora.spec
18rpm -e openvswitch
19rpm -ivh $HOME/rpmbuild/RPMS/x86_64/openvswitch-@PACKAGE_VERSION@-1.fc20.x86_64.rpm
20systemctl enable openvswitch
21systemctl start openvswitch
22systemctl status openvswitch
23SCRIPT
24
25Vagrant.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
30end