blob: 47a3f4c709e4bee4a8a8f905dac44756f5a9b28f [file] [log] [blame]
Linux Foundation Administrators0fae4092018-01-29 10:58:36 -08001#!/bin/bash
2# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
3##############################################################################
4# Copyright (c) 2016 The Linux Foundation and others.
5#
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##############################################################################
11
Zack Williamse05f7542021-02-09 17:14:21 -070012# set hostname
Linux Foundation Administrators0fae4092018-01-29 10:58:36 -080013IPADDR=$(facter ipaddress)
14HOSTNAME=$(facter hostname)
15FQDN=$(facter fqdn)
16
17echo "${IPADDR} ${HOSTNAME} ${FQDN}" >> /etc/hosts
18
Zack Williamse05f7542021-02-09 17:14:21 -070019# Increase limits
Linux Foundation Administrators0fae4092018-01-29 10:58:36 -080020cat <<EOF > /etc/security/limits.d/jenkins.conf
21jenkins soft nofile 16000
22jenkins hard nofile 16000
23EOF
24
Zack Williamse05f7542021-02-09 17:14:21 -070025# keepalive SSH sessions
Linux Foundation Administrators0fae4092018-01-29 10:58:36 -080026cat <<EOSSH >> /etc/ssh/ssh_config
27Host *
28 ServerAliveInterval 60
Linux Foundation Administrators0fae4092018-01-29 10:58:36 -080029EOSSH
30
Zack Williamse05f7542021-02-09 17:14:21 -070031# create host-wide known hosts file
Linux Foundation Administrators0fae4092018-01-29 10:58:36 -080032cat <<EOKNOWN > /etc/ssh/ssh_known_hosts
33github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
Zack Williamse05f7542021-02-09 17:14:21 -070034[gerrit.opencord.org]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCceEPwEJ5m5tbiL/AB5mY8DfT9UuXsc0l5N4AMxI89g7Vnyb9XOnxubJo2ZmIwDKI6LM5uRCgfIAKmbNNfqA1CL3e/7XKvQ69rrjnM+5swXAvD4ElYppyyU0V9EufuH2AD7zh0VdzqE25TF4nm6A/2neCqcWI7paa8c2h3YbzvHw==
35[gerrit.onosproject.org]:29418 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDgqAmRpkpZoq8Efz4sslaQYnoNCOlPy7nS/72FkvWP06WbPUsutJznSw4moKTZcxHJADW5eanBHxJ3nI8jo/bXC0qHZfzXVeDCklR/Shq8pY3B7I+WLufq4OKEuYim/ahrAYUvSYyBnnz3fLc+DLLiBhL4BBqpd9ocJd/3HZv4wRAWYmfKMKzjF84u6rehe8ZDUoNICsA/K6Wy1bYQnyJOXVBYdxSkdUc6Er1NDu6W/ijZbcpEt+Y4sYoChxKAtsqcFkjaKFgJbotDGVLnWzZTu08PGtZTE+0UyIozSQvsy/7bGSrA7t0am2IRXz0fFNCq/qOWfkwVbt8hRbEIUk/5
36[gerrit.onosproject.org]:29418 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMBzs9fkmwgIqvYavMlIFz95RzDoSBQxHIeBj2BuDz0HLz2qrW2Q2Rksq4OwsAuSjRto3+9/BgIKv1ONnh21KMM=
37[gerrit.onosproject.org]:29418 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKkIOHzFGowb9yL7FcWD73YF/xDUQ23/As/HAP3flf/L
Linux Foundation Administrators0fae4092018-01-29 10:58:36 -080038EOKNOWN
39