3 # Do the final install of OVS that the has to be done at boot time for
4 # some reason due to how the snapshots keep behaving.
5 dpkg --install /root/openvswitch-datapath-dkms* && \
6 dpkg --install /root/openvswitch-{common,switch}*
8 # add user jenkins to docker group
9 /usr/sbin/usermod -a -G docker jenkins
12 docker pull alagalah/odlpoc_ovs230
15 # make sure we don't require tty for sudo operations
16 cat <<EOF >/etc/sudoers.d/89-jenkins-user-defaults
17 Defaults:jenkins !requiretty
18 jenkins ALL=NOPASSWD: /usr/bin/ovs-vsctl
19 jenkins ALL=NOPASSWD: /usr/bin/ovs-ofctl
20 jenkins ALL=NOPASSWD: /usr/bin/ovs-dpctl
21 jenkins ALL=NOPASSWD: /sbin/ip
22 jenkins ALL=NOPASSWD: /bin/mkdir
23 jenkins ALL=NOPASSWD: /bin/ln
24 jenkins ALL=NOPASSWD: /bin/rm
25 jenkins ALL=NOPASSWD: /etc/init.d/openvswitch-switch
28 # vim: sw=2 ts=2 sts=2 et :