blob: eba5bca0b5cd9b518a71f5e0488ab71ae2966c66 [file] [log] [blame]
azvyagintsevc0d1b8a2018-03-22 19:05:03 +02001#!/bin/bash -xe
2
azvyagintsevdd137842018-07-13 18:13:06 +03003SALTSTACK_REPO=${SALTSTACK_REPO:-"deb [arch=amd64] https://mirror.mirantis.com/stable/saltstack-2017.7/xenial/ xenial main"}
4SALTSTACK_GPG=${SALTSTACK_GPG:-"https://mirror.mirantis.com/proposed/saltstack-2017.7/xenial/SALTSTACK-GPG-KEY.pub"}
azvyagintsevc0d1b8a2018-03-22 19:05:03 +02005
azvyagintsev4053eb22018-03-29 16:21:51 +03006wget -O - ${SALTSTACK_GPG} | sudo apt-key add -
7echo "${SALTSTACK_REPO}" > /etc/apt/sources.list.d/saltstack.list
8
9# We expect issues with GPG,related to our mirrors - so temporary disable check.
10echo "APT::Get::AllowUnauthenticated true;" > /etc/apt/apt.conf.d/99allow_unauthenticated
11
Marek Celouda00d7712017-03-13 15:52:26 +010012apt-get update
Filip Pytloun30a50762016-01-19 14:50:45 +010013apt-get -y install salt-minion
Filip Pytloun2a9e58f2016-03-18 08:34:56 +010014mkdir -m700 -p /etc/salt/pki/minion
azvyagintsev4053eb22018-03-29 16:21:51 +030015
16cat <<EOF >> /etc/salt/minion.d/minion.conf
Richard Felkl64dae702018-03-12 09:39:36 +010017max_event_size: 100000000
18acceptance_wait_time_max: 60
19acceptance_wait_time: 10
20random_reauth_delay: 270
21recon_default: 1000
22recon_max: 60000
23recon_randomize: True
azvyagintsev4053eb22018-03-29 16:21:51 +030024auth_timeout: 60
25EOF
26
27rm -vf /etc/apt/apt.conf.d/99allow_unauthenticated
28rm -vf /etc/apt/sources.list.d/saltstack.list