tower/output-to-inventory¶
JSON response fields to store as inventory/tower/* params on the Machine
Each element should be the name of a top-level key in the AWX / Tower JSON
response body returned by the tower-invoke-curl task.
After a successful POST, each listed field value is stored on the Machine
object as a DRP adhoc Param named inventory/tower/<field> using:
drpcli machines set $RS_UUID param inventory/tower/
Default¶
Defaults to [id, url, status]. These three fields provide the launch-
response audit trail and — critically — inventory/tower/id is required
by the tower-invoke-curl resume flow (see tower/job-poll-resume).
An operator may add more fields to capture additional launch-response
data. Removing id from the list is allowed but will cause any future
tower/job-poll-resume=true operation on this machine to fail with an
error directing the operator to either repopulate inventory/tower/id
or start the job fresh.
Example to capture additional fields:
This results in the following adhoc Inventory params on the Machine:
inventory/tower/id
inventory/tower/url
inventory/tower/status
inventory/tower/created
inventory/tower/name
If a listed field is missing from the JSON structure, the corresponding
inventory Param is recorded with a value of NULL.
Objects that Reference tower/output-to-inventory¶
- profiles EXAMPLE-tower-job-poll in Tower Integration as part of Params (declared)
- tasks tower-invoke-curl in Tower Integration as part of Templates.[0].Contents (used)
- tasks tower-invoke-curl in Tower Integration as part of Templates.[1].Contents (used)
Objects used by tower/output-to-inventory¶
Not used in current content packs