Remove nodiscover file

While new nailgun agent is not committed yet we need to explicitly remove
/etc/nailgun-agent/nodiscover to unblock it from starting

Change-Id: I3199591e7da95bac221be3554f97b00757db160a
Partial-Bug: #1585671
This commit is contained in:
Georgy Kibardin 2017-02-13 10:53:20 +03:00
parent 5877315c7f
commit b419f9a21e
1 changed files with 5 additions and 4 deletions

View File

@ -61,12 +61,13 @@ systemctl restart ntp
#
# Update mcollective config
#
while true; do
sleep 5
grep --line-regexp "[[:digit:]]\+" /etc/nailgun_uid && break
done
sed -i "s/^plugin.rabbitmq.pool.1.host\b.*$/plugin.rabbitmq.pool.1.host = $masternode_ip/" /etc/mcollective/server.cfg
sed -i "s/^plugin.rabbitmq.pool.1.user\b.*$/plugin.rabbitmq.pool.1.user = $mco_user/" /etc/mcollective/server.cfg
sed -i "s/^plugin.rabbitmq.pool.1.password\b.*$/plugin.rabbitmq.pool.1.password= $mco_pass/" /etc/mcollective/server.cfg
rm -f /etc/nailgun-agent/nodiscover # this will be removed as soon as new nailgun agent is committed
while true; do
sleep 5
grep --line-regexp "[[:digit:]]\+" /etc/nailgun_uid && break
done
echo "identity = $(head -n 1 /etc/nailgun_uid)" >> /etc/mcollective/server.cfg
service mcollective restart