2 # @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
3 ##############################################################################
4 # Copyright (c) 2016 The Linux Foundation and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Eclipse Public License v1.0
8 # which accompanies this distribution, and is available at
9 # http://www.eclipse.org/legal/epl-v10.html
10 ##############################################################################
12 case "$(facter operatingsystem)" in
17 # Do nothing on other distros for now
21 IPADDR=$(facter ipaddress)
22 HOSTNAME=$(facter hostname)
25 echo "${IPADDR} ${HOSTNAME} ${FQDN}" >> /etc/hosts
28 cat <<EOF > /etc/security/limits.d/jenkins.conf
29 jenkins soft nofile 16000
30 jenkins hard nofile 16000
33 cat <<EOSSH >> /etc/ssh/ssh_config
35 ServerAliveInterval 60
37 # we don't want to do SSH host key checking on spin-up systems
39 StrictHostKeyChecking no
40 UserKnownHostsFile /dev/null
43 cat <<EOKNOWN > /etc/ssh/ssh_known_hosts
44 [gerrit.openecomp.org]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyAKv0UzEhpGKP/rW+yHpngl32Ppr5Uy42coz/sYZYxbtpI+9yaMqfoBb06ktmt6kV7OCT/Sc0OpyWmpcR0d7KZHxx/LE/nm7Gi+xkNHhb9G+Hn6DagP4V+LS6x1YlUt2InLCb8g07+/n6rfxqCI6emIJYu9aTpDhaARb+mMX1xzJuoa4wp59Yr1mkKK8lXHKGnPCemyl9a0vSRY58b7ZWG/N8giNvqYeptslIF1E/MEI5AP6nx7EupiVulAUdboAnDSD0urt9zdE8KRjboghB7PHguil6/OZhbqOb/uEt/rGCHn+02pig1K/vjFvCqNErNgS6EKj0IkH+cU/vjV6j
47 # vim: sw=2 ts=2 sts=2 et :