# hosts

# The format is just like an /etc/hosts file, except that lines in
#  quare brackets refer to groups of hosts
# The rightmost hostname (when there are multiple names) is the canonical one.

127.0.0.1   localhost  # for running things on whatever hosts admin.py is running on.

# DC1:RAC0   128.95.242.135 cloud1   # 06salvus
10.1.1.1 dc1     kvm-host   admin edge  cloud1    cassandra-2
10.1.1.2 dc1     kvm        cassandra1  cassandra
10.1.1.3 dc1     kvm        web1  hub  nginx 
10.1.1.5 dc1     kvm        compute-2     compute1dc1

# DC1:RAC0   128.95.242.137 cloud2   # 07salvus
10.1.2.1 dc1     kvm-host   edge        cloud2    cassandra-2
10.1.2.2 dc1     kvm        cassandra2  cassandra
10.1.2.3 dc1     kvm        web2  hub nginx
10.1.2.5 dc1     kvm        compute-2     compute2dc1

# DC1:RAC0   128.95.224.237 cloud3   # 03salvus
10.1.3.1 dc1 kvm-host   admin edge  cloud3    cassandra-2
10.1.3.2 dc1 kvm        cassandra3 cassandra
10.1.3.3 dc1 kvm        hub nginx   web3
10.1.3.5 dc1     kvm        compute-2     compute3dc1

# DC1:RAC0   128.95.224.230 cloud4
10.1.4.1 dc1 kvm-host   edge        cloud4    cassandra-2
10.1.4.2 dc1 kvm        cassandra4  cassandra
10.1.4.3 dc1 kvm        hub nginx   web4
10.1.4.5 dc1     kvm        compute-2     compute4dc1

# DC1:RAC0   cloud5
10.1.5.1 dc1 kvm-host  edge            cloud5    cassandra-2
10.1.5.2 dc1 kvm          cassandra    cassandra5
10.1.5.3 dc1 kvm       hub nginx web5
10.1.5.5 dc1     kvm        compute-2     compute5dc1

# DC1:RAC0   cloud6
10.1.6.1 dc1 kvm-host  edge            cloud6    cassandra-2
10.1.6.2 dc1 kvm              cassandra6   cassandra
10.1.6.3 dc1 kvm       hub nginx web6
10.1.6.5 dc1     kvm        compute-2     compute6dc1


# DC1:RAC0   cloud7
10.1.7.1 dc1 kvm-host  edge            cloud7    cassandra-2
10.1.7.2 dc1 kvm              cassandra7    cassandra
10.1.7.3 dc1 kvm       hub nginx   web7
10.1.7.5 dc1     kvm        compute-2     compute7dc1

# DC0:RAC0   cloud10
10.1.10.1  dc0 kvm-host  edge     admin       cloud10    cassandra-2
#10.1.10.2  dc0 kvm           cassandra10    cassandra
10.1.10.3  dc0 kvm       hub nginx   web10
10.1.10.5  dc0  kvm        compute-2 compute10dc0

# DC0:RAC0   cloud11
10.1.11.1  dc0 kvm-host  edge            cloud11    cassandra-2
#10.1.11.2  dc0 kvm           cassandra11    cassandra
10.1.11.3  dc0 kvm       hub nginx   web11
10.1.11.5  dc0  kvm        compute-2     compute11dc0

# DC0:RAC0   cloud12
10.1.12.1  dc0 kvm-host  edge            cloud12     cassandra-2
#10.1.12.2  dc0 kvm           cassandra12   cassandra
10.1.12.3  dc0 kvm       hub nginx   web12
10.1.12.5  dc0  kvm        compute-2     compute12dc0

# DC0:RAC0   cloud13
10.1.13.1  dc0 kvm-host  edge            cloud13     cassandra-2
#10.1.13.2  dc0 kvm           cassandra13    cassandra
10.1.13.3  dc0  kvm       hub nginx   web13
10.1.13.5  dc0  kvm        compute-2     compute13dc0

# DC0:RAC0   cloud14
10.1.14.1 dc0 kvm-host  edge            cloud14    cassandra-2
#10.1.14.2 dc0 kvm           cassandra14    cassandra
10.1.14.3 dc0 kvm       hub nginx   web14
10.1.14.5 dc0  kvm        compute-2     compute14dc0

# DC0:RAC0   cloud15
10.1.15.1 dc0 kvm-host  edge            cloud15    cassandra-2
#10.1.15.2 dc0 kvm           cassandra15    cassandra
10.1.15.3 dc0 kvm       hub nginx   web15
10.1.15.5 dc0  kvm        compute-2     compute15dc0
#10.1.15.7 dc0 kvm       webdev

# DC0:RAC0   cloud16
10.1.16.1 dc0 kvm-host  edge            cloud16    cassandra-2
#10.1.16.2 dc0 kvm           cassandra16    cassandra
10.1.16.3 dc0 kvm       hub nginx   web16
10.1.16.5 dc0  kvm        compute-2     compute16dc0

# DC0:RAC0   cloud17
10.1.17.1 dc0 kvm-host  edge            cloud17    cassandra-2
#10.1.17.2 dc0 kvm           cassandra17    cassandra
10.1.17.3 dc0 kvm       hub nginx   web17
10.1.17.5 dc0  kvm        compute-2     compute17dc0

# DC0:RAC0   cloud18
10.1.18.1 dc0 kvm-host  edge            cloud18    cassandra-2
#10.1.18.2 dc0 kvm           cassandra18    cassandra
10.1.18.3 dc0 kvm       hub nginx   web18
10.1.18.5 dc0  kvm        compute-2     compute18dc0

# DC0:RAC0   cloud19dc0
10.1.19.1 dc0 kvm-host  edge            cloud19    cassandra-2
#10.1.19.2 dc0 kvm           cassandra19   cassandra
10.1.19.3 dc0 kvm       hub nginx   web19
10.1.19.5 dc0  kvm        compute-2     compute19dc0

# DC0:RAC0   cloud20
10.1.20.1 dc0 kvm-host  edge            cloud20    cassandra-2
#10.1.20.2 dc0 kvm           cassandra20    cassandra
10.1.20.3 dc0 kvm       hub nginx   web20
10.1.20.5 dc0  kvm        compute-2     compute20dc0

# DC0:RAC0   cloud21
10.1.21.1 dc0 kvm-host  edge            cloud21    cassandra-2
#10.1.21.2 dc0 kvm           cassandra21    cassandra
10.1.21.3 dc0 kvm       hub nginx   web21
10.1.21.5 dc0  kvm        compute-2     compute21dc0


###
## GCE dc2
###

10.3.1.5 dc2 compute-2 gce compute1dc2
10.3.2.5 dc2 compute-2 gce compute2dc2
10.3.3.5 dc2 compute-2 gce compute3dc2
10.3.4.5 dc2 compute-2 gce compute4dc2
10.3.5.5 dc2 compute-2 gce compute5dc2
10.3.6.5 dc2 compute-2 gce compute6dc2
10.3.7.5 dc2 compute-2 gce compute7dc2
10.3.8.5 dc2 compute-2 gce compute8dc2

10.3.1.1 backup1dc2

# GCE cassandra cluster
10.3.1.2 dc2 cassandra gce cassandra1dc2
10.3.2.2 dc2 cassandra gce cassandra2dc2
10.3.3.2 dc2 cassandra gce cassandra3dc2
10.3.4.2 dc2 cassandra gce cassandra4dc2

# HUB, Nginx, stunnel, etc., servers
10.3.1.3 dc2 hub gce nginx edge web1dc2
10.3.2.3 dc2 hub gce nginx edge web2dc2


#10.3.1.6 dc2 devel1dc2
#10.3.2.6 dc2 devel2dc2
#10.3.3.6 dc2 devel3dc2
#10.3.4.6 dc2 devel4dc2
#10.3.5.6 dc2 devel5dc2


###
## GCE dc3 -- europe
###

10.4.1.5 dc3 compute-2 gce compute1dc3

#10.4.2.5 dc3 compute-2 gce compute1dc3
#10.4.3.5 dc3 compute-2 gce compute1dc3
#10.4.4.5 dc3 compute-2 gce compute1dc3

10.4.1.2 dc3 cassandra gce cassandra1dc3
10.4.2.2 dc3 cassandra gce cassandra2dc3
10.4.3.2 dc3 cassandra gce cassandra3dc3
10.4.4.2 dc3 cassandra gce cassandra4dc3

10.4.1.3 dc3 hub hub-dc3 gce nginx edge web1dc3
10.4.2.3 dc3 hub hub-dc3 gce nginx edge web2dc3



###
## GCE dc4 -- asia
###

#10.5.1.5 dc4 compute-2 gce compute1dc4
#10.5.2.5 dc4 compute-2 gce compute1dc4
#10.5.3.5 dc4 compute-2 gce compute1dc4
#10.5.4.5 dc4 compute-2 gce compute1dc4

#10.5.1.2 dc4 gce cassandra1dc4
#10.5.2.2 dc4 gce cassandra2dc4
#10.5.3.2 dc4 gce cassandra3dc4
#10.5.4.2 dc4 gce cassandra4dc4

#10.5.1.3 dc4 gce web1dc4
#10.5.2.3 dc4 gce web2dc4
#10.5.3.3 dc4 gce web3dc4
#10.5.4.3 dc4 gce web4dc4



############

# Sage Cell Server  -- no vm, just ip
10.10.1.1 cellserver1 cellserver



###############################################################
# New commercial stuff
###############################################################


###
## GCE dc5 -- commercial data center (in US)
###

10.5.1.1 dc5 cassandra hub gce nginx edge smc1dc5
10.5.1.2 dc5 cassandra hub gce nginx edge smc2dc5
10.5.1.3 dc5 cassandra hub gce nginx edge smc3dc5
10.5.1.4 dc5 cassandra hub gce nginx edge smc4dc5
10.5.1.5 dc5 cassandra hub gce nginx edge smc5dc5


###
## GCE dc6 -- commercial data center (in Europe)
###

10.6.1.1 dc6 cassandra hub gce nginx edge smc1dc6
10.6.1.2 dc6 cassandra hub gce nginx edge smc2dc6
10.6.1.3 dc6 cassandra hub gce nginx edge smc3dc6
10.6.1.4 dc6 cassandra hub gce nginx edge smc4dc6
10.6.1.5 dc6 cassandra hub gce nginx edge smc5dc6

#10.6.1.3 dc6 hub gce nginx edge web1dc6


###
## GCE dc7 -- commercial data center (in Asia)
###

10.7.1.1 dc7 cassandra hub gce nginx edge smc1dc7
10.7.1.2 dc7 cassandra hub gce nginx edge smc2dc7
10.7.1.3 dc7 cassandra hub gce nginx edge smc3dc7
10.7.1.4 dc7 cassandra hub gce nginx edge smc4dc7
10.7.1.5 dc7 cassandra hub gce nginx edge smc5dc7
