blob: 39a850d03dbe13bebd12c3b8789b2b70be275e2a [file] [log] [blame]
Richard Felkl4c4829d2017-11-11 00:12:20 +01001#!/bin/bash -xe
2
3export SALT_MASTER_DEPLOY_IP=10.1.0.14
4export APTLY_DEPLOY_IP=10.1.0.14
5export APTLY_DEPLOY_NETMASK=255.255.0.0
6export APTLY_MINION_ID=apt01.deploy-name.local
7
8echo "Configuring network interfaces"
9envsubst < /root/interfaces > /etc/network/interfaces
10ifdown ens3; ifup ens3
11
12echo "Configuring salt"
13service salt-minion stop
14systemctl disable salt-minion.service
15envsubst < /root/minion.conf > /etc/salt/minion.d/minion.conf
16#service salt-minion restart