#!/bin/bash -xe | |
export SALT_MASTER_DEPLOY_IP=10.1.0.14 | |
export APTLY_DEPLOY_IP=10.1.0.14 | |
export APTLY_DEPLOY_NETMASK=255.255.0.0 | |
export APTLY_MINION_ID=apt01.deploy-name.local | |
echo "Configuring network interfaces" | |
envsubst < /root/interfaces > /etc/network/interfaces | |
ifdown ens3; ifup ens3 | |
echo "Configuring salt" | |
service salt-minion stop | |
systemctl disable salt-minion.service | |
envsubst < /root/minion.conf > /etc/salt/minion.d/minion.conf | |
#service salt-minion restart |