
Document inspection rules. Related-Change: https://review.opendev.org/c/openstack/ironic/+/939217 Change-Id: If6d77a2caf873a716ae8d96eea7ee9b3fd3fbe40
40 lines
1.1 KiB
JSON
40 lines
1.1 KiB
JSON
{
|
|
"created_at": "2025-03-18T22:28:48.643434+11:11",
|
|
"description": "Set properties on discovered data",
|
|
"phase": "main",
|
|
"priority": 50,
|
|
"sensitive": false,
|
|
"conditions": [
|
|
{
|
|
"op": "is-true",
|
|
"args": {"value": "{inventory[cpu][count]}"}
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"op": "set-attribute",
|
|
"args": {"path": "/properties/cpus", "value": "{inventory[cpu][count]}"}
|
|
},
|
|
{
|
|
"op": "set-attribute",
|
|
"args": {"path": "/properties/memory_mb", "value": "{inventory[memory][physical_mb]}"}
|
|
},
|
|
{
|
|
"op": "set-attribute",
|
|
"args": {"path": "/properties/cpu_arch", "value": "{inventory[cpu][architecture]}"}
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"href": "http://10.60.253.180:6385/v1/inspection_rules/1f3ee449-08cd-9e3f-e1e5-9cfda674081a",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://10.60.253.180:6385/inspection_rules/1f3ee449-08cd-9e3f-e1e5-9cfda674081a",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"updated_at": null,
|
|
"uuid": "1f3ee449-08cd-9e3f-e1e5-9cfda674081a"
|
|
}
|