summaryrefslogtreecommitdiff
path: root/Vagrantfile.in
blob: ba10ede82fafc88949bea50cc7bef3c164dcb2e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

$bootstrap_fedora = <<SCRIPT
yum -y update
yum -y install autoconf automake openssl-devel libtool \
               python-twisted-core python-zope-interface PyQt4 \
	       desktop-file-utils groff graphviz rpmdevtools
cd /vagrant
./boot.sh && ./configure
make clean && make dist
rpmdev-setuptree
cp openvswitch-@PACKAGE_VERSION@.tar.gz $HOME/rpmbuild/SOURCES
rpmbuild --bb --without check rhel/openvswitch-fedora.spec
rpm -e openvswitch
rpm -ivh $HOME/rpmbuild/RPMS/x86_64/openvswitch-@PACKAGE_VERSION@-1.fc20.x86_64.rpm
systemctl enable openvswitch
systemctl start openvswitch
systemctl status openvswitch
SCRIPT

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.define "fedora-20" do |fedora|
    fedora.vm.box = "chef/fedora-20"
    fedora.vm.provision :shell, inline: $bootstrap_fedora
  end
end