azvyagintsev | c0d1b8a | 2018-03-22 19:05:03 +0200 | [diff] [blame^] | 1 | #!/bin/bash -xe |
| 2 | |
| 3 | # Add apt repository |
| 4 | echo "deb [arch=amd64] http://apt.mirantis.com/xenial/ nightly salt" > /etc/apt/sources.list.d/mcp_salt.list |
| 5 | echo "deb [arch=amd64] http://apt.mirantis.com/xenial/ nightly extra" > /etc/apt/sources.list.d/mcp_extra.list |
| 6 | curl -sf http://apt.mirantis.com/public.gpg | apt-key add - |
| 7 | |
Filip Pytloun | b74e2dc | 2017-03-08 14:06:21 +0100 | [diff] [blame] | 8 | wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3/SALTSTACK-GPG-KEY.pub | sudo apt-key add - |
| 9 | echo "deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3 xenial main" >/etc/apt/sources.list.d/saltstack.list |
Marek Celoud | a00d771 | 2017-03-13 15:52:26 +0100 | [diff] [blame] | 10 | apt-get update |
Filip Pytloun | 30a5076 | 2016-01-19 14:50:45 +0100 | [diff] [blame] | 11 | apt-get -y install salt-minion |
Filip Pytloun | 2a9e58f | 2016-03-18 08:34:56 +0100 | [diff] [blame] | 12 | mkdir -m700 -p /etc/salt/pki/minion |
Richard Felkl | 64dae70 | 2018-03-12 09:39:36 +0100 | [diff] [blame] | 13 | echo " |
| 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 |
| 21 | auth_timeout: 60" >> /etc/salt/minion |