blob: dd13dfdb3df636186ad0f4a685e46f7ab65863cb [file] [log] [blame]
azvyagintsevc0d1b8a2018-03-22 19:05:03 +02001#!/bin/bash -xe
2
3# Add apt repository
4echo "deb [arch=amd64] http://apt.mirantis.com/xenial/ nightly salt" > /etc/apt/sources.list.d/mcp_salt.list
5echo "deb [arch=amd64] http://apt.mirantis.com/xenial/ nightly extra" > /etc/apt/sources.list.d/mcp_extra.list
6curl -sf http://apt.mirantis.com/public.gpg | apt-key add -
7
Filip Pytlounb74e2dc2017-03-08 14:06:21 +01008wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
9echo "deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3 xenial main" >/etc/apt/sources.list.d/saltstack.list
Marek Celouda00d7712017-03-13 15:52:26 +010010apt-get update
Filip Pytloun30a50762016-01-19 14:50:45 +010011apt-get -y install salt-minion
Filip Pytloun2a9e58f2016-03-18 08:34:56 +010012mkdir -m700 -p /etc/salt/pki/minion
Richard Felkl64dae702018-03-12 09:39:36 +010013echo "
14max_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
21auth_timeout: 60" >> /etc/salt/minion