blob: 8286c9bbc973aa2e122886fada22da2b27106678 [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"}
azvyagintsevdd137842018-07-13 18:13:06 +03004SALTSTACK_GPG=${SALTSTACK_GPG:-"https://mirror.mirantis.com/proposed/saltstack-2017.7/trusty/SALTSTACK-GPG-KEY.pub"}
azvyagintseve1b236a2018-07-13 16:59:49 +03005
6wget -O - ${SALTSTACK_GPG} | sudo apt-key add -
7echo "${SALTSTACK_REPO}" > /etc/apt/sources.list.d/saltstack.list
8
Marek Celouda00d7712017-03-13 15:52:26 +01009apt-get update
Filip Pytloun30a50762016-01-19 14:50:45 +010010apt-get -y install salt-minion
Filip Pytloun2a9e58f2016-03-18 08:34:56 +010011mkdir -m700 -p /etc/salt/pki/minion
azvyagintseve1b236a2018-07-13 16:59:49 +030012
13cat <<EOF >> /etc/salt/minion.d/minion.conf
Richard Felkl64dae702018-03-12 09:39:36 +010014max_event_size: 100000000
15acceptance_wait_time_max: 60
16acceptance_wait_time: 10
17random_reauth_delay: 270
18recon_default: 1000
19recon_max: 60000
20recon_randomize: True
azvyagintseve1b236a2018-07-13 16:59:49 +030021auth_timeout: 60
22EOF
23
azvyagintseve1b236a2018-07-13 16:59:49 +030024rm -vf /etc/apt/sources.list.d/saltstack.list