kayobe/ansible/roles/swap/files/schema.json
Mark Goddard 0c074431d0 Support configuration of swap
Supports creating and using swap files, or using pre-existing swap
devices.

Story: 2004958
Task: 29390

Change-Id: Iadb540f42036a4a63cdd5b695b82f1504b3a4a28
2022-12-07 14:23:18 +00:00

34 lines
918 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"description": "List of swap files or devices",
"type": "array",
"items": {
"oneOf": [
{
"description": "Swap file",
"type": "object",
"required": ["path", "size_mb"],
"properties": {
"path": {
"type": "string"
},
"size_mb": {
"type": "integer",
"minimum": 0
}
}
},
{
"description": "Swap device",
"type": "object",
"required": ["device"],
"properties": {
"device": {
"type": "string"
}
}
}
]
}
}