blob: 4228bb8d7175de25ff42776412600cfa8205e3d1 [file] [log] [blame]
#!/bin/bash -xe
SALTSTACK_REPO=${SALTSTACK_REPO:-"deb [arch=amd64] https://mirror.mirantis.com/stable/saltstack-2017.7/trusty/ trusty main"}
SALTSTACK_GPG=${SALTSTACK_GPG:-"https://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.3/SALTSTACK-GPG-KEY.pub"}
wget -O - ${SALTSTACK_GPG} | sudo apt-key add -
echo "${SALTSTACK_REPO}" > /etc/apt/sources.list.d/saltstack.list
# We expect issues with GPG,related to our mirrors - so temporary disable check.
echo "APT::Get::AllowUnauthenticated true;" > /etc/apt/apt.conf.d/99allow_unauthenticated
apt-get update
apt-get -y install salt-minion
mkdir -m700 -p /etc/salt/pki/minion
cat <<EOF >> /etc/salt/minion.d/minion.conf
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
EOF
rm -vf /etc/apt/apt.conf.d/99allow_unauthenticated
rm -vf /etc/apt/sources.list.d/saltstack.list