Last active
December 20, 2015 20:49
-
-
Save nfisher/6193521 to your computer and use it in GitHub Desktop.
Early draft of network structure interchange format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "1.0", | |
"networks": { | |
"ldn-dmz-prod": {"ip": "172.168.3.0", "mask": "/24"}, | |
"ldn-dmz-priv": {"ip": "192.168.3.0", "mask": "/24"}, | |
}, | |
"services": { | |
"http": {"tcp_ports": 80}, | |
"https": {"tcp_ports": 443}, | |
"ganglia": {"tcp_ports": 8649, "udp_ports": 8649}, | |
"nrpe": {"tcp_ports": 5666, "udp_ports": 5666}, | |
"rails": {"tcp_ports": 5000}, | |
"mysql": {"tcp_ports": 3306}, | |
"hippo": {"tcp_ports": 5010} | |
}, | |
"roles": { | |
"proxy": ["http", "https", "nrpe"], | |
"frontend": ["rails", "nrpe"], | |
"cms": ["hippo", "nrpe"], | |
"db": ["mysql", "nrpe"] | |
}, | |
"consumers": [ | |
"proxy_frontend": [ | |
{"source_role": "proxy", "dest_role": "frontend", "dest_service": "rails", "dest_protocols": ["tcp"]}, | |
{"source_role": "proxy", "dest_role": "cms", "dest_service": "rails", "dest_protocols": ["tcp"]}, | |
] | |
], | |
"hosts": [ | |
"db1.junctionbox.ca": { | |
"aliases": ["db1.jbx.priv"], | |
"adapters": [ | |
"eth0": {"address": "192.168.3.2", "netmask": "/7", "mac": "b9:9d:16:21:ee:c9"} | |
"eth1": {"address": "172.168.3.2", "netmask": "/8", "mac": "b9:9d:16:21:ee:c7"} | |
], | |
"roles": ["db"] | |
}, | |
"db2.junctionbox.ca": { | |
"aliases": ["db1.jbx.priv"], | |
"adapters": [ | |
"eth0": {"address": "192.168.3.3", "netmask": "/7", "mac": "b9:9d:16:21:ee:c9"} | |
"eth1": {"address": "172.168.3.3", "netmask": "/8", "mac": "b9:9d:16:21:ee:c7"} | |
] | |
"roles": ["db"] | |
}, | |
"fe01.junctionbox.ca": { | |
"aliases": ["fe1.jbx.priv"], | |
"adapters": [ | |
"eth0": {"address": "10.50.6.2", "netmask": "/9", "mac": "b9:9d:16:21:ee:c9"} | |
"eth1": {"address": "10.136.3.2", "netmask": "/8", "mac": "b9:9d:16:21:ee:c7"} | |
] | |
"roles": ["frontend"] | |
}, | |
"fe02.junctionbox.ca": { | |
"aliases": ["fe2.jbx.priv"], | |
"adapters": [ | |
"eth0": {"address": "10.50.6.3", "netmask": "/9", "mac": "b9:9d:16:21:ee:c9"} | |
"eth1": {"address": "10.136.3.3", "netmask": "/8", "mac": "b9:9d:16:21:ee:c7"} | |
] | |
"roles": ["frontend"] | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment