1
0
mirror of https://github.com/rancher/quickstart.git synced 2026-02-05 12:45:15 +01:00

Update configure_rancher_node.sh

added update to add node ip and name into /etc/hosts
This commit is contained in:
chrisurwin
2020-07-11 10:55:44 +01:00
committed by GitHub
parent 21071e7d22
commit 01d32c02cb

View File

@@ -5,6 +5,7 @@ curlimage="appropriate/curl"
jqimage="stedolan/jq"
agent_ip=`ip addr show eth1 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1`
echo $agent_ip `hostname` >> /etc/hosts
for image in $curlimage $jqimage; do
until docker inspect $image > /dev/null 2>&1; do