#!/bin/bash # @License EPL-1.0 ############################################################################## # Copyright (c) 2016 The Linux Foundation and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at # http://www.eclipse.org/legal/epl-v10.html ############################################################################## case "$(facter operatingsystem)" in Ubuntu) apt-get update ;; *) # Do nothing on other distros for now ;; esac IPADDR=$(facter ipaddress) HOSTNAME=$(facter hostname) FQDN=$(facter fqdn) echo "${IPADDR} ${HOSTNAME} ${FQDN}" >> /etc/hosts #cat <> /etc/hosts # workaround for download #199.19.213.77 download.automotivelinux.org #EOFHOSTS #Increase limits cat < /etc/security/limits.d/jenkins.conf jenkins soft nofile 64000 jenkins hard nofile 64000 jenkins soft nproc 30654 jenkins hard nproc 30654 EOF cat <> /etc/ssh/ssh_config Host * ServerAliveInterval 60 # we don't want to do SSH host key checking on spin-up systems Host 10.30.72.* StrictHostKeyChecking no UserKnownHostsFile /dev/null Host vex-yul-agl-download.ci.codeaurora.org StrictHostKeyChecking no UserKnownHostsFile /dev/null Host github.com StrictHostKeyChecking no UserKnownHostsFile /dev/null Host gitlab.com StrictHostKeyChecking no UserKnownHostsFile /dev/null EOSSH cat < /etc/ssh/ssh_known_hosts [gerrit.automotivelinux.org]:29418 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHZbT/wR4DF81iFvddGgWS5XtbcdLjQUPIxR4kHXMo5FzR0DNbU6nUafPD06bX9Ej5cpPWt8TjgXIEc8ux4CKL4= [gerritssh.automotivelinux.org]:29418,[34.210.40.98]:29418 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHZbT/wR4DF81iFvddGgWS5XtbcdLjQUPIxR4kHXMo5FzR0DNbU6nUafPD06bX9Ej5cpPWt8TjgXIEc8ux4CKL4= vex-yul-agl-download.ci,10.30.72.8 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNaxEOWbShvqQWqS17c123Ct8tBLBVVOPTNYpZSmwd1UKVQi9cF0QMOU7Rc479bHwzuLscvmohpGh2kP0CmHvAo= EOKNOWN # vim: sw=2 ts=2 sts=2 et :