We need to pick a unique local IP address for all our local test vms, for infrastructure projects. If we use the same one, vagrant and ansible get in a twist.
The plan:
10.100.<# for project>.<# for app or server>
Increment the 3rd quad per project. -
Increment the 4th quad per server in that project.
We need to pick a unique local IP address for all our local test vms, for infrastructure projects. If we use the same one, vagrant and ansible get in a twist.
The plan:
Current list from /etc/hosts
What?
The snippet of etc hosts below shows the pattern.
The pattern is
10.100.xxx.10y
wherexxx
is the subnet for the project e.g. sohi, kudos etc and > 100 and not in the list belowy
is per server in that project, eg. app is 100, ops is 101.Examples.
The app and ops servers for sohiworld:
The app and ops servers for kudos health: