Appendix B. FAQs and Flows

B.1. Phase 1: Create Provision Request

image

QuestionAnswer

Where do I create a new provisioning profile based on a users LDAP group?

Navigate to [VM / Provisioning / Profile] of either the Cloud or Infrastructure namespace in your domain.

Where can I specify a pre-dialog to present to a Requester in their LDAP group?

Custom pre-dialogs can be defined in [VM / Provisioning / Profile / <LDAP Group Name>] of either the Cloud or Infrastructure namespace in your domain.

I would like to customize our dialogs. Where are all the dialogs kept?

All dialogs are located on each CloudForms Management Engine Appliance in the [/var/www/miq/vmdb/db/fixtures] directory.

What happens if I do not specify any profiles for provisioning?

CloudForms Management Engine searches for a matching LDAP group in the [VM / Provisioning / Profile] class of either the Cloud or Infrastructure namespace in your domain. If an LDAP profile is NOT found then CloudForms Management Engine will use the .missing class instance.

B.2. Phase 2: Request Approval

image

QuestionAnswer

Where can I specify auto-approval values on a per virtual machine template basis?

Tags can be assigned to templates in the form of [prov_max_vms, prov_max_cpus, prov_max_memory, prov_max_retirement_days].

Where can I modify the default Auto-Approval values?

These values can be set in the [Service / Provisioning / StateMachines / ServiceProvisionRequestApproval / Default] class instance in your domain.

How can I customize the email that is sent when a request is approved?

The Request Approved email message can be modified in [VM / Provisioning / Email / MiqProvisionRequest_Approved] in either the Cloud or Infrastructure namespace of your domain.

How can I customize the email that is sent when a request is denied?

The Request Denied email message can be modified in [VM / Provisioning / Email / MiqProvisionRequest_Denied] in either the Cloud or Infrastructure namespace of your domain.

How can I customize the email that is sent when a request is not Auto-approved?

The Request Pending email message can be modified in [VM / Provisioning / Email / MiqProvisionRequest_Denied] in either the Cloud or Infrastructure namespace of your domain.

If a Request Approval requires manual approval, how does an Approver approve the request?

Log into CloudForms Management Engine as an approver/admin and Navigate to Virtual MachinesRequests and then click on the request.

B.3. Phase 3: Quota Validation

QuestionAnswer

Where in CloudForms Management Engine can I set default quota thresholds for users and groups?

These values can be set in the [VM / Provisioning / StateMachines / ProvisionRequestQuotaVerification] class instance of either the Cloud or Infrastructure namespace in your domain.

Where in CloudForms Management Engine can I set individual and group quota thresholds?

Tags can be assigned to groups or users by navigating to ConfigurationAccess Control. The following are valid tags that can be assigned to group or individual users: [quota_max_cpu, quota_max_memory, quota_max_storage].

Where can I customize the way our virtual machines are named?

Virtual machine naming conventions can be altered using the methods in the [VM / Provisioning / Naming] class of either the Cloud or Infrastructure namespace in your domain.

How can I customize the email that is sent when a request is denied?

The Request Denied email message can be modified in the [VM / Provisioning / Email / MiqProvisionRequest_Denied] in either the Cloud or Infrastructure namespace of your domain.

B.4. Phase 4: Provisioning

Figure B.1. Target Type: Cloning a Template to a Virtual Machine

Target Type: Cloning a Template to a Virtual Machine

Figure B.2. Target Type: Clone to Template

Target Type: Clone to Template
QuestionAnswer

Where can I customize the email message that is sent upon provisioning completion?

This can be customized using the [VM / Provisioning / Email / MiqProvision_Complete] in either the Cloud or Infrastructure namespace of your domain.

Where can I change what is put into the virtual machines Annotation after provisioning?

These settings can be modified by leveraging the *_PreProvision Ruby methods in [VM / Provisioning / StateMachines / Methods] in either the Cloud or Infrastructure namespace of your domain.

Where do I set the default VC folder location for provisioning virtual machines?

This can be modified by leveraging by leveraging the *_PreProvision Ruby methods in [VM / Provisioning / StateMachines / Methods] in either the Cloud or Infrastructure namespace of your domain.

Where can I modify the virtual machine customization spec mapping?

This can be modified by leveraging by leveraging the *_PreProvision Ruby methods in [VM / Provisioning / StateMachines / Methods] in either the Cloud or Infrastructure namespace of your domain.

Where can I modify the Clone_to_Template state_machine?

Navigate to [VM / Provisioning / StateMachines / VMProvision_VM / template ] in either the Cloud or Infrastructure namespace of your domain.

Where can I modify the Clone_to_VM state_machine?

Navigate to [VM / Provisioning / StateMachines / VMProvision_VM / clone_to_vm ] in either the Cloud or Infrastructure namespace of your domain.

B.5. Phase 5: Retirement

image

QuestionAnswer

Where can I customize the email message that is sent upon completion of virtual machine retirement?

This can be customized using the [VM / Retirement / Email / vm_retirement_emails] in either the Cloud or Infrastructure namespace of your domain.

Where can I customize the email message that is sent during virtual machine retirement warnings?

This can be customized using the [VM / Retirement / Email / vm_retirement_emails] in either the Cloud or Infrastructure namespace of your domain.

If I want to customize what gets called during the retirement phase where should I look?

This can be customized using the [VM / Retirement / StateMachines / VMRetirement] in either the Cloud or Infrastructure namespace of your domain.

How can I extend the virtual machine retirement date an additional number of days?

Create a custom button for virtual machines that launches [/System/Request/vm_retire_extend]. Then navigate to the [VM / Retirement / Email / vm_retire_extend] Ruby method in the Cloud and Infrastructure namespaces and set the vm_retire_extend_days value.