I have a couple of use cases related to ManageIQ service catalogue items, and auto-approve/ pending approvals.
As an example, I may want a couple of OpenStack service catalogue items. One may be for a user to request an extra floating IP, which shouldn’t need any extra approvals (ie; auto-approved). Another may be for a user to request an additional security group, which should need to be approved.
The question is: how can I specify whether a service catalogue item is auto-approved, or pending approval, on a per-item basis?
I’ve had a read of Peter McGowan’s Cloudforms Automation book, and I can override the ManageIQ/Service/Provisioning/StateMachines/ServiceProvision/RequestApproval/Default instance, and have an “approval_type” attribute of “pending” or “auto”. This will set the default value for all service catalogue items.
However, is there a way of specifying “pending” or “auto” on a per-catalogue item basis? Perhaps when the request is created? I’d prefer not to use the REST API, and have this encapsulated within the Automate layer, if possible.