1 $deps = [ 'build-essential',
6 'linux-headers-generic',
9 'python-zopeinterface',
10 'python-twisted-conch',
18 vcsrepo { '/home/vagrant/mininet':
22 source => 'git://github.com/mininet/mininet',
23 revision => '2.1.0p2',
24 before => Exec['Install Mininet']
27 exec { 'Install Mininet':
28 command => 'bash mininet/util/install.sh -nf > /dev/null',
29 cwd => '/home/vagrant',
35 exec {'openvswitch-2.1.2.tar.gz':
36 command => 'wget http://openvswitch.org/releases/openvswitch-2.1.2.tar.gz',
37 cwd => '/home/vagrant',
42 exec { 'Extract Open vSwitch':
43 command => 'tar -xvf openvswitch-2.1.2.tar.gz',
44 cwd => '/home/vagrant',
48 require => Exec['openvswitch-2.1.2.tar.gz']
51 exec { 'Compile Open vSwitch':
52 command => 'fakeroot debian/rules binary',
53 cwd => '/home/vagrant/openvswitch-2.1.2',
57 require => [Exec['Extract Open vSwitch'], Package[$deps]]
60 package { 'openvswitch-common':
63 source => '/home/vagrant/openvswitch-common_2.1.2-1_amd64.deb',
64 require => Exec['Compile Open vSwitch']
67 package { 'openvswitch-switch':
70 source => '/home/vagrant/openvswitch-switch_2.1.2-1_amd64.deb',
71 require => Package['openvswitch-common']
74 package { 'openvswitch-datapath-dkms':
77 source => '/home/vagrant/openvswitch-datapath-dkms_2.1.2-1_all.deb',
78 require => Package['openvswitch-switch']
81 package { 'openvswitch-pki':
84 source => '/home/vagrant/openvswitch-pki_2.1.2-1_all.deb',
85 require => Package['openvswitch-datapath-dkms']
88 exec { 'Compile Test Controller':
89 command => 'sh boot.sh && sh configure && make',
90 cwd => '/home/vagrant/openvswitch-2.1.2',
93 require => [Exec['Compile Open vSwitch'], Package[$deps]]
96 exec { 'Link Test Controller':
97 command => 'ln -s /home/vagrant/openvswitch-2.1.2/tests/test-controller /usr/bin/ovs-controller',
98 cwd => '/home/vagrant/openvswitch-2.1.2',
101 require => Exec['Compile Test Controller']