#!/bin/sh
LM=$(cat /etc/susecon2017/local_master)
sed -i "s/^master.*\$/master: $LM/" /etc/salt/minion.d/ceph.conf

#!/bin/sh
LOCAL_MASTER=$(cat /etc/susecon2017/local_master)
sed -i "s/^master.*\$/master: $LOCAL_MASTER/" /etc/salt/minion.d/ceph.conf
rm -f /etc/salt/pki/minion/minion_master.pub

Remove /etc/salt/pki/minion/minion_master.pub when switching masters
Remove /etc/salt/pki/minion/minion_master.pub when switching masters

Signed-off-by: Nathan Cutler <f9d8c66a4e898e67db786769b5b347b640e1a9a6@suse.com>
