Code Review
/
ci-management.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Do not push hicn items to nexus.fd.io anymore."
[ci-management.git]
/
jenkins-scripts
/
basic_settings.sh
diff --git
a/jenkins-scripts/basic_settings.sh
b/jenkins-scripts/basic_settings.sh
index
412dfff
..
86d6725
100755
(executable)
--- a/
jenkins-scripts/basic_settings.sh
+++ b/
jenkins-scripts/basic_settings.sh
@@
-11,12
+11,14
@@
case "$(facter operatingsystem)" in
Ubuntu)
case "$(facter operatingsystem)" in
Ubuntu)
- apt-get update
# make sure that the ca-certs are properly updated
/usr/sbin/update-ca-certificates
# attach to the fd.io.dev apt repo
# make sure that the ca-certs are properly updated
/usr/sbin/update-ca-certificates
# attach to the fd.io.dev apt repo
- echo 'deb http://nexus.fd.io/content/repositories/fd.io.dev/ ./' >> /etc/apt/sources.list
+# echo 'deb http://nexus.fd.io/content/repositories/fd.io.dev/ ./' >> /etc/apt/sources.list
+
+ # Configure Ubuntu mirror
+ perl -pi -e 'unless(m{fd\.io}){ s{://[^/]+/}{://ca.archive.ubuntu.com/} }' /etc/apt/sources.list
;;
*)
# Do nothing on other distros for now
;;
*)
# Do nothing on other distros for now
@@
-35,6
+37,11
@@
jenkins soft nofile 16000
jenkins hard nofile 16000
EOF
jenkins hard nofile 16000
EOF
+cat <<EOJENKINS_SUDO >/etc/sudoers.d/89-jenkins-user-defaults
+Defaults:jenkins !requiretty
+jenkins ALL = NOPASSWD: ALL
+EOJENKINS_SUDO
+
cat <<EOSSH >> /etc/ssh/ssh_config
Host *
ServerAliveInterval 60
cat <<EOSSH >> /etc/ssh/ssh_config
Host *
ServerAliveInterval 60
@@
-48,7
+55,7
@@
Host 10.30.48.* 10.30.49.*
EOSSH
cat <<EOKNOWN > /etc/ssh/ssh_known_hosts
EOSSH
cat <<EOKNOWN > /etc/ssh/ssh_known_hosts
-[gerrit.fd.io]:29418,[
162.253.54.31]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC76FxV43JIk/HpI5JUZfizmak9znK/QzsjPoNHt/Eo2Vp68kvJIRZ+PzI7RJR0NsdsXlyqzRsGuH+Cj99ZuLVjNMqz1Y1A5y6itYAgT42KDcnV/JoPx6WV+THdQ+oMSp2dINtvD1kc6Om8iAA2CwYOfIZ/FQS5A9OX2xzFopo4qAN3nRk9kpcHyC698R5SDNZBbk6eqlsBz0827KJrSpOSEEMBhtroBM4JV8vImcSWeJuQ5QFdZgQdQaI8R5YFBRbWu3mDSgJfjJk89xT2CkUiqIynNJeiQMM4IZxcdQB3zJ1RUEJepxv77yV09NZ8jwhaN6X659UJZjsCZ5ffvc77
+[gerrit.fd.io]:29418,[
52.10.107.188]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCjr1oez076EFMo5n25lAJ2zhftLAHIkTmwTdjwR82xA8sqQbN0FMz4znZyO7o2jlewlw/OqnVAwEIvEto6tqoj1zu8bHS1Vwq4toKkk3SLzRdn8NeTL3K92IkEHhBfB7MGtDFnbKxGmC/MmcP7sUb3MUY9EyInP1ZBVDT8S1wZ0lfcQoMVraM5G3ShmoR9FNszv1EQzbg/b9EAKuZZLXoyd6NZ2OHjBOrQzbBW9/MtYQHq60m2znOq49/gpTano5EeIHgUFfrf30qZCvL3qcFZspkofpYHB7YsRz/87YAhZorQo7E5uyNKu4CMWkj3Y8JxUAdYYbuAZqFbVE7eTGl5
EOKNOWN
# vim: sw=2 ts=2 sts=2 et :
EOKNOWN
# vim: sw=2 ts=2 sts=2 et :