tableflip / how-to

:question: How to TABLEFLIP and other stories
4 stars 0 forks source link

Pick an IP for a local vm for infrastructure projects #16

Open olizilla opened 8 years ago

olizilla commented 8 years ago

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>

Current list from /etc/hosts

10.100.100.100  dev.svssecurities.com
10.100.101.100  dev.samlabs.me
10.100.102.100  dev.streetflower.com
10.100.103.100  dev.schoolofwok.co.uk   bo.dev.schoolofwok.co.uk
10.100.104.100  dev.tableflip.io    blog.dev.tableflip.io
10.100.105.100  dev.kitmapper.com dev-api.kitmapper.com dev-rethink.kitmapper.com dev-chat.kitmapper.com dev-admin.kitmapper.com
10.100.105.101  dev-ops.kitmapper.com
10.100.106.100  dev.medialist.io
10.100.107.100  researchjunction.dev
10.100.108.100  lunch.tableflip.local
10.100.109.100  dev.fairsquareduk.com
10.100.110.100  dev.mycampusconnect.ie
10.100.111.100  dev-post.tableflip.io
10.100.112.100  dev.tune.tableflip.io
10.100.115.100  dev.kudoshealth.com api.dev.kudoshealth.com
10.100.115.101  dev.ops.kudoshealth.com
10.100.116.100  dev.sohiworld.com dev-api.sohiworld.com
10.100.116.101  dev-ops.sohiworld.com
10.100.118.100  dev.sharedassets.org.uk  geoserver.dev.sharedassets.org.uk
10.100.119.100  dev.legacy.tableflip.io
10.100.120.100  dev.monitor.tableflip.io
10.100.121.100  dev.api.landexplorer.uk
10.100.122.100  dev.mysurvey.gstti.co.uk

What?

The snippet of etc hosts below shows the pattern.

10.100.115.100  dev.sohiworld.com dev-api.sohiworld.com
10.100.115.101  dev-ops.sohiworld.com
10.100.116.100  dev.sohiworld.com dev-api.sohiworld.com
10.100.116.101  dev-ops.sohiworld.com

The pattern is 10.100.xxx.10y where

Examples.

The app and ops servers for sohiworld:

10.100.116.100  dev.sohiworld.com dev-api.sohiworld.com
10.100.116.101  dev-ops.sohiworld.com

The app and ops servers for kudos health:

10.100.115.100  dev.sohiworld.com dev-api.sohiworld.com
10.100.115.101  dev-ops.sohiworld.com