fuel-web/nailgun/nailgun/fixtures/sample_environment.json

385 lines
10 KiB
JSON

[
{
"pk": 1,
"model": "nailgun.release",
"fields": {
"name": "Essex",
"version": "1.2.3",
"description": "Essex release description",
"networks_metadata": [
{"name": "floating", "access": "public"},
{"name": "fixed", "access": "private"},
{"name": "admin", "access": "private"}
]
}
},
{
"pk": 1,
"model": "nailgun.cluster",
"fields": {
"name": "Production",
"release": 1
}
},
{
"pk": 2,
"model": "nailgun.cluster",
"fields": {
"name": "Staging",
"release": 1
}
},
{
"model": "nailgun.point",
"pk": 1,
"fields": {
"name": "point0",
"release": 1,
"scheme": {
"attr0": {
"generator": "generator_ip",
"generator_args": "floating",
"attribute": "attr.path0"
}
}
}
},
{
"model": "nailgun.point",
"pk": 2,
"fields": {
"name": "point1",
"release": 1,
"scheme": {
"attr1": {
"generator": "generator_ip",
"generator_args": "floating",
"attribute": "attr.path1"
},
"attr2": {
"generator": "generator_ip",
"generator_args": "floating",
"attribute": "attr.path2"
}
}
}
},
{
"model": "nailgun.com",
"pk": 1,
"fields": {
"name": "component0",
"release": 1,
"deploy": {
"driver": "chef-solo",
"driver_args": {
"run_list": [
"recipe[cookbook0::recipe0@0.1.0]"
]
}
},
"provides": [1],
"requires": []
}
},
{
"model": "nailgun.com",
"pk": 2,
"fields": {
"name": "component1",
"release": 1,
"deploy": {
"driver": "chef-solo",
"driver_args": {
"run_list": [
"recipe[cookbook0::recipe1@0.1.0]",
"recipe[cookbook0::recipe2@0.1.0]"
]
}
},
"provides": [2],
"requires": [1]
}
},
{
"model": "nailgun.com",
"pk": 3,
"fields": {
"name": "component2",
"release": 1,
"deploy": {
"driver": "chef-solo",
"driver_args": {
"run_list": [
"recipe[cookbook1::recipe0@0.1.0]",
"recipe[cookbook2::recipe0@0.1.0]"
]
}
},
"provides": [2],
"provides": [],
"requires": [1, 2]
}
},
{
"model": "nailgun.role",
"pk": 1,
"fields": {
"name": "Controller",
"release": 1,
"components": [1,2]
}
},
{
"model": "nailgun.role",
"pk": 2,
"fields": {
"name": "Compute",
"release": 1,
"components": [3]
}
},
{
"pk": "111111111111",
"model": "nailgun.node",
"fields": {
"status": "ready",
"name": "",
"manufacturer": "Dell",
"platform_name": "Model-1",
"roles": [
1
],
"ip": "",
"fqdn": "",
"cluster": 1,
"mac": "C0:8D:DF:52:76:F1",
"metadata": {
"block_device": {
"ram0": {
"removable": "0",
"size": "1228800"
},
"sda": {
"vendor": "ATA",
"removable": "0",
"rev": "0.14",
"state": "running",
"timeout": "30",
"model": "QEMU HARDDISK",
"size": "16777216"
}
},
"interfaces": [
{
"addresses": {
"fe80::5054:ff:fe28:16c3": {
"prefixlen": "64",
"scope": "Link",
"family": "inet6"
},
"52:54:00:28:16:C3": {
"family": "lladdr"
},
"10.20.0.229": {
"prefixlen": "24",
"scope": "Global",
"netmask": "255.255.255.0",
"broadcast": "10.20.0.255",
"family": "inet"
}
},
"name": "eth0"
},
{
"default_interface": "eth0"
},
{
"default_gateway": "10.20.0.2"
}
],
"cpu": {
"real": 0,
"0": {
"family": "6",
"vendor_id": "GenuineIntel",
"mhz": "3192.766",
"stepping": "3",
"cache_size": "4096 KB",
"flags": [
"fpu",
"lahf_lm"
],
"model": "2",
"model_name": "QEMU Virtual CPU version 0.14.1"
},
"total": 1
},
"memory": {
"anon_pages": "16420kB",
"vmalloc_total": "34359738367kB",
"bounce": "0kB",
"active": "28576kB",
"inactive": "20460kB",
"nfs_unstable": "0kB",
"vmalloc_used": "7160kB",
"total": "1019548kB",
"slab": "16260kB",
"buffers": "4888kB",
"slab_unreclaim": "7180kB",
"swap": {
"cached": "0kB",
"total": "0kB",
"free": "0kB"
},
"dirty": "84kB",
"writeback": "0kB",
"vmalloc_chunk": "34359729156kB",
"free": "322008kB",
"page_tables": "1328kB",
"cached": "27728kB",
"commit_limit": "509772kB",
"committed_as": "54864kB",
"mapped": "5380kB",
"slab_reclaimable": "9080kB"
},
"serial": "Unknown",
"networks": {
"floating": {
"access": "public",
"device": "eth0",
"netmask": "255.255.255.0",
"vlan_id": 300,
"address": "172.18.0.2"
},
"management": {
"access": "private",
"device": "eth0",
"netmask": "255.255.255.0",
"vlan_id": 100,
"address": "10.0.0.2"
},
"storage": {
"access": "private",
"device": "eth0",
"netmask": "255.255.255.0",
"vlan_id": 200,
"address": "10.0.1.2"
}
}
}
}
},
{
"pk": "222222222222",
"model": "nailgun.node",
"fields": {
"status": "error",
"name": "",
"manufacturer": "HP",
"platform_name": "Model-2",
"roles": [
1,
2
],
"ip": "",
"fqdn": "",
"cluster": 1,
"mac": "46:FC:5A:0C:F9:51"
}
},
{
"pk": "333333333333",
"model": "nailgun.node",
"fields": {
"status": "deploying",
"name": "",
"manufacturer": "OpenVZ",
"platform_name": "Model-3",
"roles": [
2
],
"ip": "",
"fqdn": "",
"cluster": 1,
"mac": "2E:04:78:86:69:1F"
}
},
{
"pk": "444444444444",
"model": "nailgun.node",
"fields": {
"status": "offline",
"name": "",
"manufacturer": "",
"platform_name": "No-Manufacturer",
"roles": [],
"ip": "",
"fqdn": "",
"cluster": 1,
"mac": "BC:10:A1:44:94:A0"
}
},
{
"pk": "555555555555",
"model": "nailgun.node",
"fields": {
"status": "ready",
"name": "Node with name",
"manufacturer": "VMWare",
"platform_name": "",
"roles": [],
"ip": "",
"fqdn": "",
"cluster": 1,
"mac": "B6:17:54:39:27:EA"
}
},
{
"pk": "000000000000",
"model": "nailgun.node",
"fields": {
"status": "ready",
"name": "Node without cluster",
"manufacturer": "",
"platform_name": "",
"roles": [],
"ip": "",
"fqdn": "",
"cluster": null,
"mac": "47:33:22:46:9B:92"
}
},
{
"pk": "000000000001",
"model": "nailgun.node",
"fields": {
"status": "ready",
"name": "Another node without cluster",
"manufacturer": "QEMU",
"platform_name": "",
"roles": [],
"ip": "",
"fqdn": "",
"cluster": null,
"mac": "84:67:BA:CA:69:95"
}
},
{
"pk": "000000000001",
"model": "nailgun.node",
"fields": {
"status": "ready",
"name": "node virtualbox",
"manufacturer": "virtualbox",
"platform_name": "",
"roles": [],
"ip": "",
"fqdn": "",
"cluster": null,
"mac": "3A:10:EC:04:9A:DE"
}
}
]