Added workflow to delete cloud stack
This commit is contained in:
125
cloud/setup.yml
125
cloud/setup.yml
@@ -171,6 +171,63 @@ controller_templates:
|
||||
variable: _hosts
|
||||
required: false
|
||||
|
||||
- name: Cloud / AWS / Delete Keypair
|
||||
job_type: run
|
||||
organization: Default
|
||||
credentials:
|
||||
- AWS
|
||||
project: Ansible Product Demos
|
||||
playbook: cloud/delete_aws_key.yml
|
||||
inventory: Demo Inventory
|
||||
notification_templates_started: Telemetry
|
||||
notification_templates_success: Telemetry
|
||||
notification_templates_error: Telemetry
|
||||
survey_enabled: true
|
||||
survey:
|
||||
name: ''
|
||||
description: ''
|
||||
spec:
|
||||
- question_name: AWS Region
|
||||
type: multiplechoice
|
||||
variable: create_vm_aws_region
|
||||
required: true
|
||||
choices:
|
||||
- us-east-1
|
||||
- us-east-2
|
||||
- us-west-1
|
||||
- us-west-2
|
||||
- question_name: Keypair Name
|
||||
type: text
|
||||
variable: aws_key_name
|
||||
required: true
|
||||
default: aws-test-key
|
||||
|
||||
- name: Cloud / AWS / Delete VPC
|
||||
job_type: run
|
||||
organization: Default
|
||||
credentials:
|
||||
- AWS
|
||||
project: Ansible Product Demos
|
||||
playbook: cloud/delete_vpc.yml
|
||||
inventory: Demo Inventory
|
||||
notification_templates_started: Telemetry
|
||||
notification_templates_success: Telemetry
|
||||
notification_templates_error: Telemetry
|
||||
survey_enabled: true
|
||||
survey:
|
||||
name: ''
|
||||
description: ''
|
||||
spec:
|
||||
- question_name: AWS Region
|
||||
type: multiplechoice
|
||||
variable: create_vm_aws_region
|
||||
required: true
|
||||
choices:
|
||||
- us-east-1
|
||||
- us-east-2
|
||||
- us-west-1
|
||||
- us-west-2
|
||||
|
||||
- name: Cloud / AWS / Display EC2 Stats
|
||||
job_type: run
|
||||
organization: Default
|
||||
@@ -392,3 +449,71 @@ controller_workflows:
|
||||
unified_job_template: 'SUBMIT FEEDBACK'
|
||||
extra_data:
|
||||
feedback: Cloud / AWS / Patch EC2 Workflow | Failed to restore ec2 from snapshot
|
||||
|
||||
- name: Delete AWS Cloud Stack
|
||||
description: >
|
||||
Delete the AWS cloud stack created by the "Deploy Cloud Stack in AWS" workflow
|
||||
organization: Default
|
||||
notification_templates_started: Telemetry
|
||||
notification_templates_success: Telemetry
|
||||
notification_templates_error: Telemetry
|
||||
survey_enabled: true
|
||||
survey:
|
||||
name: ''
|
||||
description: ''
|
||||
spec:
|
||||
- question_name: AWS Region
|
||||
type: multiplechoice
|
||||
variable: create_vm_aws_region
|
||||
required: true
|
||||
choices:
|
||||
- us-east-1
|
||||
- us-east-2
|
||||
- us-west-1
|
||||
- us-west-2
|
||||
- question_name: Instances to delete
|
||||
type: text
|
||||
variable: _hosts
|
||||
required: true
|
||||
default: aws-dc,aws_win1,aws_rhel8,aws_rhel9,reports
|
||||
- question_name: Keypair to delete
|
||||
type: text
|
||||
variable: aws_key_name
|
||||
required: true
|
||||
default: aws-test-key
|
||||
- question_name: VPC to delete
|
||||
type: text
|
||||
variable: aws_vpc_name
|
||||
required: true
|
||||
default: aws-test-vpc
|
||||
simplified_workflow_nodes:
|
||||
- identifier: Delete AWS Instances
|
||||
unified_job_template: Cloud / AWS / Delete VM
|
||||
success_nodes:
|
||||
- Delete AWS Keypair
|
||||
failure_nodes:
|
||||
- Ticket - Delete AWS Instances Failed
|
||||
- identifier: Delete AWS Keypair
|
||||
unified_job_template: Cloud / AWS / Delete Keypair
|
||||
success_nodes:
|
||||
- Delete AWS VPC
|
||||
failure_nodes:
|
||||
- Ticket - Delete AWS Keypair Failed
|
||||
- identifier: Ticket - Delete AWS Instances Failed
|
||||
unified_job_template: 'SUBMIT FEEDBACK'
|
||||
extra_data:
|
||||
feedback: Failed to delete one or more AWS instances
|
||||
- identifier: Ticket - Delete AWS Keypair Failed
|
||||
unified_job_template: 'SUBMIT FEEDBACK'
|
||||
extra_data:
|
||||
feedback: Failed to delete AWS keypair
|
||||
- identifier: Delete AWS VPC
|
||||
unified_job_template: Cloud / AWS / Delete VPC
|
||||
failure_nodes:
|
||||
- Ticket - Delete AWS VPC Failed
|
||||
- identifier: Ticket - Delete AWS VPC Failed
|
||||
unified_job_template: 'SUBMIT FEEDBACK'
|
||||
extra_data:
|
||||
feedback: Failed to delete AWS VPC
|
||||
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user