Merge "Update cloud image Ubuntu18.04 mininet ovs"
[releng/builder.git] / jenkins-init-scripts / devstack.sh
1 #!/bin/sh
2
3 # It looks like the devstack gate is stomping on our dnsmasq setup which
4 # therefore kills our ability to do proper lookups of some resources.
5 # Let's capture the 3 nexus IPs into /etc/hosts
6 cat <<EOHOSTS >> /etc/hosts
7 # the internal address for nexus
8 $(dig +short nexus.opendaylight.org) nexus.opendaylight.org
9 # all the nexus proxies
10 $(dig +short nexus01.dfw.opendaylight.org) nexus01.dfw.opendaylight.org
11 $(dig +short nexus02.dfw.opendaylight.org) nexus02.dfw.opendaylight.org
12 $(dig +short nexus03.ord.opendaylight.org) nexus03.ord.opendaylight.org
13 EOHOSTS
14
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: ALL
19 EOF
20
21 # vim: sw=2 ts=2 sts=2 et :