CE-3269: Implement batch deployment logic
The batch deployment and undeployment have been introduced. This merge request also includes the DB modification.
In the case of batch deployment an AWX job executes multiple deployments, so the relationship between the awx_job
and ioc_deployment
tables has been modified to allow multiple ioc_deployment
entries to be associated with a single awx_job
.
The batch deployment request towards AWX looks like (In the case if we want to deploy IOC1 to host1 and IOC2 to host2):
{
"limit": "host1:host2",
"extra_vars": {
"iocs_to_undeploy_json": [],
"iocs_to_deploy_json": [
"IOC1", "IOC2"
]
}
}
Merge request reports
Activity
requested review from @anderslindh1, @imretoth, @skybrewer, and @simonrose
assigned to @domonkosgulyas
- Resolved by Anders Lindh Olsson
Note that this cannot be the output to AWX: this would deploy both IOCs to both hosts. If we have an inventory, this could work, but without an inventory it will not.
We probably need to have a bit of a discussion about how to handle this pre-inventory.
- Resolved by Simon Rose
mentioned in merge request !484 (merged)
added 7 commits
Toggle commit list- Resolved by Sky Brewer
- Resolved by Sky Brewer
- Resolved by Sky Brewer
- Resolved by Sky Brewer
- Resolved by Sky Brewer
- Resolved by Sky Brewer
- Resolved by Sky Brewer
added 1 commit