forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a basic Vagrantfile which compiles and provisions the local OVS source tree in a Fedora 20 VM. The Vagrantfile.in can be extended to support additional distributions. To use this Vagrantfile: 1. Install Vagrant plus a compatible hypervisor 2. Run configure to translate Vagrantfile.in to Vagrantfile 3. Run `vagrant up` to create & provision the VM 4. Run `vagrant ssh` to log into the VM Signed-off-by: Thomas Graf <[email protected]> Acked-by: Kyle Mestery <[email protected]>
- Loading branch information
Thomas Graf
committed
Jan 5, 2015
1 parent
6c3cc11
commit 1ce96d2
Showing
5 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,3 +65,5 @@ tags | |
_debian | ||
odp-netlink.h | ||
OvsDpInterface.h | ||
Vagrantfile | ||
/.vagrant/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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-@[email protected] $HOME/rpmbuild/SOURCES | ||
rpmbuild --bb --without check rhel/openvswitch-fedora.spec | ||
rpm -e openvswitch | ||
rpm -ivh $HOME/rpmbuild/RPMS/x86_64/openvswitch-@[email protected]_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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters