
Document inspection rules. Related-Change: https://review.opendev.org/c/openstack/ironic/+/939217 Change-Id: If6d77a2caf873a716ae8d96eea7ee9b3fd3fbe40
35 lines
887 B
JSON
35 lines
887 B
JSON
{
|
|
"description": "BMC credentials",
|
|
"phase": "main",
|
|
"priority": 100,
|
|
"sensitive": true,
|
|
"conditions": [
|
|
{
|
|
"op": "contains",
|
|
"args": {"value": "{inventory[system_vendor][manufacturer]}", "regex": "(?i)dell"}
|
|
},
|
|
{
|
|
"op": "is-true",
|
|
"args": {"value": "{node.auto_discovered}"}
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"op": "set-attribute",
|
|
"args": {"path": "/driver", "value": "idrac"}
|
|
},
|
|
{
|
|
"op": "set-attribute",
|
|
"args": {"path": "driver_info.redfish_address", "value": "https://{inventory[bmc_address]}"}
|
|
},
|
|
{
|
|
"op": "set-attribute",
|
|
"args": {"path": "/driver_info/redfish_username", "value": "admin"}
|
|
},
|
|
{
|
|
"op": "set-attribute",
|
|
"args": {"path": "/driver_info/redfish_password", "value": "password"}
|
|
}
|
|
]
|
|
}
|