Skip to content

Commit

Permalink
Merge pull request #309 from billfitzgerald0120/email3_host_provision
Browse files Browse the repository at this point in the history
Email instances for Host provisioning.
  • Loading branch information
mkanoor committed Jun 4, 2018
2 parents e24c4e4 + eb3ff0b commit b12f85c
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ object:
datatype: string
priority: 13
owner:
default_value: "/Infrastructure/Host/Provisioning/Email/MiqHostProvision_complete?event=host_provisioned"
default_value: "/System/Notification/Email/MiqHostProvisionComplete?event=host_provisioned"
substitute: true
message: create
visibility:
Expand Down
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}'
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}'
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ object:
description:
fields:
- rel5:
value: "/Infrastructure/Host/Provisioning/Email/MiqHostProvisionRequest_Approved"
value: "/System/Notification/Email/MiqHostProvisionRequestApproved"

0 comments on commit b12f85c

Please sign in to comment.