This is the data for: https://etherpad.opendev.org/p/ironic-cardoe-inspect-hooks-and-rules
This aims to be more concrete with my use case and integration with Nautobot.
This is the data for: https://etherpad.opendev.org/p/ironic-cardoe-inspect-hooks-and-rules
This aims to be more concrete with my use case and integration with Nautobot.
| - description: Check m1.small hardware model | |
| conditions: | |
| - op: eq | |
| args: ["{inventory[system_vendor][manufacturer]}", "Dell"] | |
| - op: eq | |
| args: ["{inventory[system_vendor][model]}", "PowerEdge R7615"] | |
| - op: eq | |
| args: ["{inventory[cpu][model_name]}", "AMD"] | |
| - op: "!is-empty" | |
| args: ["{plugin_data[bmc_address}"] | |
| actions: | |
| - op: set-attribute | |
| args: ["/driver", "idrac"] | |
| - op: set-attribute | |
| args: ["/resource_class", "CUSTOM.M1.SMALL"] |
| # https://github.com/rackerlabs/understack/blob/main/schema/flavor.schema.json | |
| name: m1.small | |
| # next two lines tie us back to the Nautobot/Netbox device-types | |
| manufacturer: Dell | |
| model: PowerEdge R7615 | |
| # the rest defines what must exist for this flavor | |
| cpu_model: AMD | |
| cpu_cores: 16 | |
| memory_gb: 384 | |
| drives: | |
| - 480 | |
| - 480 | |
| pci: | |
| - name: Some Vendor NIC | |
| vendor_id: 0x8086 | |
| device_id: 0x1000 | |
| sub_vendor_id: 0x8086 | |
| sub_device_id: 0x1000 |
| # https://github.com/netbox-community/devicetype-library/blob/master/device-types/Dell/PowerEdge-R7615.yaml | |
| # essentially just using the above. |