azvyagintsev | e1b236a | 2018-07-13 16:59:49 +0300 | [diff] [blame] | 1 | #!/bin/bash -xe |
| 2 | |
| 3 | SALTSTACK_REPO=${SALTSTACK_REPO:-"deb [arch=amd64] https://mirror.mirantis.com/stable/saltstack-2017.7/trusty/ trusty main"} |
azvyagintsev | dd13784 | 2018-07-13 18:13:06 +0300 | [diff] [blame] | 4 | SALTSTACK_GPG=${SALTSTACK_GPG:-"https://mirror.mirantis.com/proposed/saltstack-2017.7/trusty/SALTSTACK-GPG-KEY.pub"} |
azvyagintsev | e1b236a | 2018-07-13 16:59:49 +0300 | [diff] [blame] | 5 | |
| 6 | wget -O - ${SALTSTACK_GPG} | sudo apt-key add - |
| 7 | echo "${SALTSTACK_REPO}" > /etc/apt/sources.list.d/saltstack.list |
| 8 | |
Marek Celoud | a00d771 | 2017-03-13 15:52:26 +0100 | [diff] [blame] | 9 | apt-get update |
Filip Pytloun | 30a5076 | 2016-01-19 14:50:45 +0100 | [diff] [blame] | 10 | apt-get -y install salt-minion |
Filip Pytloun | 2a9e58f | 2016-03-18 08:34:56 +0100 | [diff] [blame] | 11 | mkdir -m700 -p /etc/salt/pki/minion |
azvyagintsev | e1b236a | 2018-07-13 16:59:49 +0300 | [diff] [blame] | 12 | |
| 13 | cat <<EOF >> /etc/salt/minion.d/minion.conf |
Richard Felkl | 64dae70 | 2018-03-12 09:39:36 +0100 | [diff] [blame] | 14 | max_event_size: 100000000 |
| 15 | acceptance_wait_time_max: 60 |
| 16 | acceptance_wait_time: 10 |
| 17 | random_reauth_delay: 270 |
| 18 | recon_default: 1000 |
| 19 | recon_max: 60000 |
| 20 | recon_randomize: True |
azvyagintsev | e1b236a | 2018-07-13 16:59:49 +0300 | [diff] [blame] | 21 | auth_timeout: 60 |
| 22 | EOF |
| 23 | |
azvyagintsev | e1b236a | 2018-07-13 16:59:49 +0300 | [diff] [blame] | 24 | rm -vf /etc/apt/sources.list.d/saltstack.list |