azvyagintsev | c0d1b8a | 2018-03-22 19:05:03 +0200 | [diff] [blame] | 1 | #!/bin/bash -xe |
| 2 | |
azvyagintsev | dd13784 | 2018-07-13 18:13:06 +0300 | [diff] [blame^] | 3 | SALTSTACK_REPO=${SALTSTACK_REPO:-"deb [arch=amd64] https://mirror.mirantis.com/stable/saltstack-2017.7/xenial/ xenial main"} |
| 4 | SALTSTACK_GPG=${SALTSTACK_GPG:-"https://mirror.mirantis.com/proposed/saltstack-2017.7/xenial/SALTSTACK-GPG-KEY.pub"} |
azvyagintsev | c0d1b8a | 2018-03-22 19:05:03 +0200 | [diff] [blame] | 5 | |
azvyagintsev | 4053eb2 | 2018-03-29 16:21:51 +0300 | [diff] [blame] | 6 | wget -O - ${SALTSTACK_GPG} | sudo apt-key add - |
| 7 | echo "${SALTSTACK_REPO}" > /etc/apt/sources.list.d/saltstack.list |
| 8 | |
| 9 | # We expect issues with GPG,related to our mirrors - so temporary disable check. |
| 10 | echo "APT::Get::AllowUnauthenticated true;" > /etc/apt/apt.conf.d/99allow_unauthenticated |
| 11 | |
Marek Celoud | a00d771 | 2017-03-13 15:52:26 +0100 | [diff] [blame] | 12 | apt-get update |
Filip Pytloun | 30a5076 | 2016-01-19 14:50:45 +0100 | [diff] [blame] | 13 | apt-get -y install salt-minion |
Filip Pytloun | 2a9e58f | 2016-03-18 08:34:56 +0100 | [diff] [blame] | 14 | mkdir -m700 -p /etc/salt/pki/minion |
azvyagintsev | 4053eb2 | 2018-03-29 16:21:51 +0300 | [diff] [blame] | 15 | |
| 16 | cat <<EOF >> /etc/salt/minion.d/minion.conf |
Richard Felkl | 64dae70 | 2018-03-12 09:39:36 +0100 | [diff] [blame] | 17 | max_event_size: 100000000 |
| 18 | acceptance_wait_time_max: 60 |
| 19 | acceptance_wait_time: 10 |
| 20 | random_reauth_delay: 270 |
| 21 | recon_default: 1000 |
| 22 | recon_max: 60000 |
| 23 | recon_randomize: True |
azvyagintsev | 4053eb2 | 2018-03-29 16:21:51 +0300 | [diff] [blame] | 24 | auth_timeout: 60 |
| 25 | EOF |
| 26 | |
| 27 | rm -vf /etc/apt/apt.conf.d/99allow_unauthenticated |
| 28 | rm -vf /etc/apt/sources.list.d/saltstack.list |