blob: 4b312c0072dfbef75cb3d2a2fad4a72fff9166df [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
Dmitry Stremkouskia94b5f32017-12-02 00:41:54 +030010ip a flush dev ens3
11rm /var/run/network/ifstate.ens3
12ifup ens3
Richard Felkl4c4829d2017-11-11 00:12:20 +010013
14echo "Configuring salt"
15service salt-minion stop
16systemctl disable salt-minion.service
17envsubst < /root/minion.conf > /etc/salt/minion.d/minion.conf
18#service salt-minion restart