Skip to content

Instantly share code, notes, and snippets.

@lusis
Created November 23, 2010 21:28
Show Gist options
  • Save lusis/712574 to your computer and use it in GitHub Desktop.
Save lusis/712574 to your computer and use it in GitHub Desktop.
Suggest format for basic system facts
{
"id": "0123456789abcdef",
"name": "myname",
"provider": "puppet",
"role": "some_identifier_from_cm_system_can_be_nil?",
"timestamp": 1290616560,
"provisioned": "true",
"os": {
"name": "linux",
"version": "2.6.35-22-generic",
"vendor": "ubuntu",
"vendor_version": "10.10"
},
"hardware": {
"type": "virtual",
"provider": "vmware",
"arch": "x86_64",
"ram": 8192,
"swap": 768,
"cpu": {
"count": 4,
"cores": 2,
"speed": "2.4",
"vendor": "Intel",
"vendor_model": "T770",
"vendor_description": "Intel(R) Core(TM) i5"
},
"disk":{
"/dev/sda1": 500,
"/dev/sda2": 500,
"/dev/sda3": 128
},
"network":{
"/dev/eth0": {
"address": "192.168.1.1",
"netmask": "255.255.255.0",
"hwaddress": "01:01:01:01:01:01",
"speed": 1000,
"duplex":"full",
"mtu": 9000,
"gateway": "192.168.1.254"
},
"/dev/eth1":{
"address":"192.168.10.10",
"netmask":"255.255.255.0",
"hwaddress":"02:02:02:02:02:02",
"speed": 10,
"duplex":"half",
"mtu": 1500,
"gateway": "192.168.10.1"
},
"/dev/eth1_1":{
"address": "10.0.0.1",
"netmask": "255.0.0.0",
"hwaddress": "01:01:01:01:01:02",
"speed": 1000,
"duplex":"full",
"mtu": 9000,
"gateway": "10.0.0.254"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment