-
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.
Update on Bill's initial work for tranformation plan
New namespace Transformation New System/Policy instances for TransformationPlanRequest events
- Loading branch information
Showing
40 changed files
with
247 additions
and
689 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
...e/ManageIQ/System/CommonMethods/StateMachineMethods.class/migration_plan_vm_finished.yaml
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...ageIQ/System/CommonMethods/StateMachineMethods.class/transformation_plan_vm_finished.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,13 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: transformation_plan_vm_finished | ||
inherits: | ||
description: | ||
fields: | ||
- execute: | ||
value: task_finished(object => 'service_template_transformation_plan_task', | ||
message => 'VM Migrated Successfully' ) |
15 changes: 15 additions & 0 deletions
15
content/automate/ManageIQ/System/Notification/Email.class/transformationplancomplete.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,15 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: TransformationPlanComplete | ||
inherits: | ||
description: | ||
fields: | ||
- to: | ||
value: "${/#owner.email} || ${/#miq_request.get_option(:owner_email)} || ${/#miq_request.requester.email} | ||
\ " | ||
- sendmail: | ||
value: "#stop_email" |
18 changes: 18 additions & 0 deletions
18
...e/ManageIQ/System/Notification/Email.class/transformationplanrequestapproverapproved.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,18 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: TransformationPlanRequestApproverApproved | ||
inherits: | ||
description: | ||
fields: | ||
- subject: | ||
value: Request ID ${/#miq_request.id} - Transformation Plan Request received | ||
from ${/#miq_request.requester.email} was Approved. | ||
- body: | ||
value: 'Approver,<br><br>Transformation Plan Request received from ${/#miq_request.requester.email} | ||
was Approved.<br><br>Approvers reason: ${/#miq_request.reason}<br><br>To view | ||
this Request go to: <a href=''http://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}''>http://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}</a><br><br> | ||
Thank you,<br> ${#signature}' |
18 changes: 18 additions & 0 deletions
18
...ate/ManageIQ/System/Notification/Email.class/transformationplanrequestapproverdenied.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,18 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: TransformationPlanRequestApproverDenied | ||
inherits: | ||
description: | ||
fields: | ||
- subject: | ||
value: Request ID ${/#miq_request.id} - Transformation Plan Request from <${/#miq_request.requester.email}> | ||
was Denied. | ||
- body: | ||
value: 'Approver,<br><br>A Transformation Plan Request received from ${/#miq_request.requester.email} | ||
was Denied.<br><br>Approvers notes: ${/#miq_request.reason}<br><br>For more | ||
information you can go to: <a href=''http://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}''>http://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}</a><br><br> | ||
Thank you<br> ${#signature}' |
17 changes: 17 additions & 0 deletions
17
...te/ManageIQ/System/Notification/Email.class/transformationplanrequestapproverpending.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,17 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: TransformationPlanRequestApproverPending | ||
inherits: | ||
description: | ||
fields: | ||
- subject: | ||
value: Request ID ${/#miq_request.id} - Transformation Plan Request from <${/#miq_request.requester.email}> | ||
Failed Auto-Approval. | ||
- body: | ||
value: 'Approver,<br><br>A Transformation Plan Request received from ${/#miq_request.requester.email} | ||
is Pending.<br><br>For more information you can go to: <a href=''http://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}''>http://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}</a><br><br> | ||
Thank you<br> ${#signature}' |
22 changes: 22 additions & 0 deletions
22
.../ManageIQ/System/Notification/Email.class/transformationplanrequestrequesterapproved.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,22 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: TransformationPlanRequestRequesterApproved | ||
inherits: | ||
description: | ||
fields: | ||
- to: | ||
value: "${/#owner.email} || ${/#miq_request.get_option(:owner_email)} || ${/#miq_request.requester.email} | ||
\ " | ||
- subject: | ||
value: Request ID ${/#miq_request.id} - Your Transformation Plan Request was | ||
Approved, pending Quota Validation. | ||
- body: | ||
value: 'Hello,<br><br>Your Transformation Plan Request was Approved. If Service | ||
provisioning is successful you will be notified via email when the Service | ||
is available.<br><br>Approvers notes: ${/#miq_request.reason}<br><br>To view | ||
this Request go to: <a href=''https://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}''>https://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}</a><br><br> | ||
Thank you,<br> ${#signature}' |
20 changes: 20 additions & 0 deletions
20
...te/ManageIQ/System/Notification/Email.class/transformationplanrequestrequesterdenied.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,20 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: TransformationPlanRequestRequesterDenied | ||
inherits: | ||
description: | ||
fields: | ||
- to: | ||
value: "${/#owner.email} || ${/#miq_request.get_option(:owner_email)} || ${/#miq_request.requester.email} " | ||
- subject: | ||
value: Request ID ${/#miq_request.id} - Your Transformation Plan Request was | ||
Denied. | ||
- body: | ||
value: 'Hello,<br><br>Your Transformation Plan Request was Denied.<br><br>Approvers | ||
notes: ${/#miq_request.reason}<br><br>For more information you can go to: | ||
<a href=''http://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}''>http://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}</a><br><br> | ||
Thank you<br> ${#signature}' |
20 changes: 20 additions & 0 deletions
20
...e/ManageIQ/System/Notification/Email.class/transformationplanrequestrequesterpending.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,20 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: TransformationPlanRequestRequesterPending | ||
inherits: | ||
description: | ||
fields: | ||
- to: | ||
value: "${/#owner.email} || ${/#miq_request.get_option(:owner_email)} || ${/#miq_request.requester.email} " | ||
- subject: | ||
value: Request ID ${/#miq_request.id} - Your Transformation Plan Request is | ||
Pending. | ||
- body: | ||
value: 'Hello,<br><br>Please review your Transformation Plan Request and wait | ||
for approval from an Administrator.<br><br>To view this Request go to: <a | ||
href=''http://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}''>http://${/#miq_server.ipaddress}:3000/miq_request/show/${/#miq_request.id}</a><br><br> | ||
Thank you<br> ${#signature}' |
12 changes: 0 additions & 12 deletions
12
content/automate/ManageIQ/System/Policy.class/migrationplanprovisionrequest_approved.yaml
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
content/automate/ManageIQ/System/Policy.class/migrationplanprovisionrequest_created.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
content/automate/ManageIQ/System/Policy.class/migrationplanprovisionrequest_denied.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
content/automate/ManageIQ/System/Policy.class/migrationplanprovisionrequest_pending.yaml
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
...omate/ManageIQ/System/Policy.class/servicetemplatetransformationplanrequest_approved.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,14 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: ServiceTemplateTransformationPlanRequest_approved | ||
inherits: | ||
description: | ||
fields: | ||
- rel5: | ||
value: "/System/Notification/Email/TransformationPlanRequestRequesterApproved " | ||
- rel6: | ||
value: "/System/Notification/Email/TransformationPlanRequestApproverApproved " |
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
14 changes: 14 additions & 0 deletions
14
...utomate/ManageIQ/System/Policy.class/servicetemplatetransformationplanrequest_denied.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,14 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: ServiceTemplateTransformationPlanRequest_denied | ||
inherits: | ||
description: | ||
fields: | ||
- rel5: | ||
value: "/System/Notification/Email/TransformationPlanRequestRequesterDenied" | ||
- rel6: | ||
value: "/System/Notification/Email/TransformationPlanRequestApproverDenied" |
14 changes: 14 additions & 0 deletions
14
...tomate/ManageIQ/System/Policy.class/servicetemplatetransformationplanrequest_pending.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,14 @@ | ||
--- | ||
object_type: instance | ||
version: 1.0 | ||
object: | ||
attributes: | ||
display_name: | ||
name: ServiceTemplateTransformationPlanRequest_pending | ||
inherits: | ||
description: | ||
fields: | ||
- rel5: | ||
value: "/System/Notification/Email/TransformationPlanRequestRequesterPending" | ||
- rel6: | ||
value: "/System/Notification/Email/TransformationPlanRequestApproverPending" |
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
12 changes: 0 additions & 12 deletions
12
content/automate/ManageIQ/System/Policy.class/transformationplanrequest_approved.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
content/automate/ManageIQ/System/Policy.class/transformationplanrequest_denied.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
content/automate/ManageIQ/System/Policy.class/transformationplanrequest_pending.yaml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
content/automate/ManageIQ/System/Policy.class/transformationplanrequest_starting.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.