Merge "Fix genius CSIT jobs"
[releng/builder.git] / jenkins-scripts / basic_settings.sh
index 1dae79c817e22136585025e3c3c2441905c71386..a80b9ffeb2b03a3009c98cfd1d9334006e56975e 100755 (executable)
@@ -1,15 +1,28 @@
 #!/bin/bash
 
 #Increase limits
-cat <<EOF > /etc/security/limits.d/jenkins
-jenkins               soft     nofile         16000
-jenkins               hard    nofile         16000
+cat <<EOF > /etc/security/limits.d/jenkins.conf
+jenkins         soft    nofile          16000
+jenkins         hard    nofile          16000
 EOF
 
 cat <<EOSSH >> /etc/ssh/ssh_config
+Host *
+  ServerAliveInterval 60
 
 # we don't want to do SSH host key checking on Rackspace spin-up systems
-Host 10.30.11.*
+# Dallas (ODL)
+Host 10.29.12.* 10.29.13.* 10.29.14.* 10.29.15.*
+  StrictHostKeyChecking no
+  UserKnownHostsFile /dev/null
+
+# Private Cloud (ODL)
+Host 10.29.8.* 10.29.9.* 10.29.10.* 10.29.11.*
+  StrictHostKeyChecking no
+  UserKnownHostsFile /dev/null
+
+# Vexxhost (ODL)
+Host 10.30.170.* 10.30.171.*
   StrictHostKeyChecking no
   UserKnownHostsFile /dev/null
 EOSSH
@@ -18,4 +31,10 @@ cat <<EOKNOWN >  /etc/ssh/ssh_known_hosts
 [140.211.169.26]:29418,[git.opendaylight.org]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAyRXyHEw/P1iZr/fFFzbodT5orVV/ftnNRW59Zh9rnSY5Rmbc9aygsZHdtiWBERVVv8atrJSdZool75AglPDDYtPICUGWLR91YBSDcZwReh5S9es1dlQ6fyWTnv9QggSZ98KTQEuE3t/b5SfH0T6tXWmrNydv4J2/mejKRRLU2+oumbeVN1yB+8Uau/3w9/K5F5LgsDDzLkW35djLhPV8r0OfmxV/cAnLl7AaZlaqcJMA+2rGKqM3m3Yu+pQw4pxOfCSpejlAwL6c8tA9naOvBkuJk+hYpg5tDEq2QFGRX5y1F9xQpwpdzZROc5hdGYntM79VMMXTj+95dwVv/8yTsw==
 EOKNOWN
 
+# To handle the prompt style that is expected all over the environment
+# with how use use robotframework we need to make sure that it is
+# consistent for any of the users that are created during dynamic spin
+# ups
+echo 'PS1="[\u@\h \W]> "' >> /etc/skel/.bashrc
+
 # vim: sw=2 ts=2 sts=2 et :