blob: 4228bb8d7175de25ff42776412600cfa8205e3d1 [file] [log] [blame]
azvyagintseve1b236a2018-07-13 16:59:49 +03001#!/bin/bash -xe
2
3SALTSTACK_REPO=${SALTSTACK_REPO:-"deb [arch=amd64] https://mirror.mirantis.com/stable/saltstack-2017.7/trusty/ trusty main"}
4SALTSTACK_GPG=${SALTSTACK_GPG:-"https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3/SALTSTACK-GPG-KEY.pub"}
5
6wget -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
azvyagintseve1b236a2018-07-13 16:59:49 +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
azvyagintseve1b236a2018-07-13 16:59:49 +030024auth_timeout: 60
25EOF
26
27rm -vf /etc/apt/apt.conf.d/99allow_unauthenticated
28rm -vf /etc/apt/sources.list.d/saltstack.list