Approving requests
Requests for provisioning of resources can be approved primarily in two different ways: manually, from the Red Hat CloudForms Management Engine console, or automatically. Additionally, an external method of request approval can also be used. However, that is not in the scope of this book.
Request approvals are managed by the ProvisionRequestApproval state machine.
Automatic approval
If a provisioning request meets the criteria mentioned in the ProvisionRequestApproval state machine, it is automatically approved. This is what we saw in the provisioning example in the earlier chapter. The criteria and its maximum values can either be set as a global default or be defined for each template.
For example, the default instance of the ProvisionRequestApproval state machine is set to automatically approve the request if the maximum number of virtual machines requested is less than or equal to 1
, which is defined by the max_vms parameter. It has a value of 1
, as shown in the following...