| #!/bin/bash -xe |
| |
| # Add apt repository |
| echo "deb [arch=amd64] http://apt.mirantis.com/xenial/ nightly salt" > /etc/apt/sources.list.d/mcp_salt.list |
| echo "deb [arch=amd64] http://apt.mirantis.com/xenial/ nightly extra" > /etc/apt/sources.list.d/mcp_extra.list |
| curl -sf http://apt.mirantis.com/public.gpg | apt-key add - |
| |
| wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3/SALTSTACK-GPG-KEY.pub | sudo apt-key add - |
| echo "deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3 xenial main" >/etc/apt/sources.list.d/saltstack.list |
| apt-get update |
| apt-get -y install salt-minion |
| mkdir -m700 -p /etc/salt/pki/minion |
| echo " |
| max_event_size: 100000000 |
| acceptance_wait_time_max: 60 |
| acceptance_wait_time: 10 |
| random_reauth_delay: 270 |
| recon_default: 1000 |
| recon_max: 60000 |
| recon_randomize: True |
| auth_timeout: 60" >> /etc/salt/minion |