Skip to content

Conversation

@clca
Copy link

@clca clca commented Dec 15, 2015

…ERSION to make easier to point to the latest version

…ERSION to make easier to point to the latest version
@clca
Copy link
Author

clca commented Dec 16, 2015

You are looking at the wrong file, that section is supposed to be outside the if isAgent block,
....
else
echo "ports:[1-21,23-5050,5052-32000]" | sudo tee /etc/mesos-slave/resources
fi
hostname -i | sudo tee /etc/mesos-slave/ip
hostname | sudo tee /etc/mesos-slave/hostname
fi

Add mesos-dns IP addresses to the head file, so they are at the top of the file

for i in seq 0 $((MASTERCOUNT-1)) ;
do
MASTEROCTET=expr $MASTERFIRSTADDR + $i
IPADDR="${BASESUBNET}${MASTEROCTET}"
echo nameserver $IPADDR | sudo tee -a /etc/resolvconf/resolv.conf.d/head

done
cat /etc/resolvconf/resolv.conf.d/head
sudo service resolvconf restart

Note: you can remove the line with cat /etc/resolvconf/resolv.conf.d/head, added only for debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant