-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #309 from billfitzgerald0120/email3_host_provision
Email instances for Host provisioning.
- Loading branch information
Showing
4 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
content/automate/ManageIQ/System/Notification/Email.class/miqhostprovisioncomplete.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: MiqHostProvisionComplete | ||
inherits: | ||
description: | ||
fields: | ||
- to: | ||
value: "${/#miq_host_provision.miq_request.get_option(:owner_email)} || ${/#miq_host_provision.miq_request.requester.email} | ||
|| ${/Configuration/Email/Default#default_recipient}" | ||
- subject: | ||
value: 'Request ID ${/#miq_host_provision.miq_request.id} - Your Host Provisioning | ||
Request has Completed - Host : ${/#host}.' | ||
- body: | ||
value: 'Hello,<br/><br/>Your Request to Provision a Host has Completed. <br/><br/>Host | ||
: ${/#host}<b> will be available in approximately 15 minutes</b>. <br/><br/>If | ||
you are not already logged in, you can access and manage your host here : | ||
<a href=${/#host.show_url}>${/#host.show_url}</a> <br/><br/> If you have any | ||
issues with your new host please contact Support. <br/><br/> Thank you,<br/> | ||
${#signature}' |
21 changes: 21 additions & 0 deletions
21
...nt/automate/ManageIQ/System/Notification/Email.class/miqhostprovisionrequestapproved.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: MiqHostProvisionRequestApproved | ||
inherits: | ||
description: | ||
fields: | ||
- to: | ||
value: "${/#miq_request.get_option(:owner_email)} || ${/#miq_request.requester.email} | ||
|| ${/Configuration/Email/Default#default_recipient}" | ||
- subject: | ||
value: Request ID ${/#miq_request.id} - Your Host Provisioning Request was Approved, | ||
pending Quota Validation. | ||
- body: | ||
value: 'Hello,<br/><br/>Your host request was approved. If Quota validation | ||
is successful you will be notified via email when the host is available.<br/><br/>To | ||
view this Request go to : <a href=${/#host.show_url}>${/#host.show_url}</a><br/><br/> | ||
Thank you,<br/> ${#signature}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters