RackHD/on-taskgraph

View on GitHub
static/schemas/2.0/node.2.0.json

Summary

Maintainability
Test Coverage
{
    "title": "Node.2.0",
    "definitions": {
        "PartialNode": {
            "description": "A node discovered by RackHD",
            "type": "object",
            "properties": {
                "autoDiscover": {
                    "description": "Enable automatic discovery",
                    "type": "string"
                },
                "name": {
                    "description": "Name of the node",
                    "type": "string"
                },
                "type": {
                    "description": "Type of node",
                    "type": "string",
                    "enum": ["compute-container", "compute", "switch", "dae", "pdu", "mgmt", "enclosure", "rack"]
                },
                "obms": {
                    "description": "OBM settings",
                    "type": "array",
                    "items": {
                        "type": "object"
                    }
                },
                "bootSettings": {
                    "description": "Default ipxe profile settings",
                    "type": "object"
                },
                "relations": {
                    "description": "Node relations",
                    "type": "array"
                },
                "tags": {
                    "type": "array",
                    "items": {
                        "type": "string",
                        "uniqueItems": true
                    }
                },
                "identifiers": {
                    "description": "Node Macs",
                    "type": "array",
                    "items": {
                        "type": "string",
                        "uniqueItems": true
                    }
                }
            },
            "additionalProperties": false
        },
        "Node": {
            "allOf": [
                { "$ref": "#/definitions/PartialNode" },
                { "required": [ "name", "type" ] }
            ]
        }
    }
}