Update baremetal_inspect to be compatible with new sdk
Refactors the module to be based off OpenstackModule. Changes sdk calls to use the proxy layer where appropriate. The inspection itself stays at the cloud layer to support waiting. Make sure we convert returned resource objects to dict Adds a barebones role to test the module. This won't run in CI, since we don't have the ironic plugin configured in devstack. Changes the return value of the module to be the entire node, instead of just the properties that resulted from inspection. Return docs were updated to reflect this. Update module params to use `name` as the identifier for the node, aliasing it to the previous supported values of `id` and `uuid`. Use module kwargs to specify mutually exclusive params. Stop catching exceptions and instead let them bubble up so ansible handles them. Change-Id: I2b07b58c8b068d7f18db9862fcecb4088328ac74
Showing
- ci/roles/baremetal_inspect/defaults/main.yml 56 additions, 0 deletionsci/roles/baremetal_inspect/defaults/main.yml
- ci/roles/baremetal_inspect/tasks/main.yml 15 additions, 0 deletionsci/roles/baremetal_inspect/tasks/main.yml
- plugins/modules/baremetal_inspect.py 292 additions, 78 deletionsplugins/modules/baremetal_inspect.py
Loading
Please register or sign in to comment