Skip to content

Commit

Permalink
Extend create vm job template (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
l3acon authored Sep 13, 2023
1 parent 7e4399e commit 2cd3ec6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
10 changes: 9 additions & 1 deletion cloud/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,14 @@ controller_templates:
variable: create_vm_aws_keypair_name
required: true
default: aws-test-key
- question_name: AWS Instance Type (defaults to blueprint value)
type: text
variable: create_vm_aws_instance_size
required: false
- question_name: AWS Image Filter (defaults to blueprint value)
type: text
variable: create_vm_aws_image_filter
required: false

- name: Cloud / AWS / Delete VM
job_type: run
Expand Down Expand Up @@ -612,4 +620,4 @@ controller_workflows:
- identifier: Ticket - Restore Failed
unified_job_template: 'SUBMIT FEEDBACK'
extra_data:
feedback: Cloud / AWS / Patch EC2 Workflow | Failed to restore ec2 from snapshot
feedback: Cloud / AWS / Patch EC2 Workflow | Failed to restore ec2 from snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ aws_env_tag: prod
aws_purpose_tag: ansible_demo
aws_ansiblegroup_tag: cloud
aws_ec2_wait: true
aws_snapshots: {}
aws_snapshots: {}
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@
region: "{{ aws_region }}"
instance_ids: "{{ instance_id }}"
state: started
wait: true
wait: true
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@
ansible.builtin.set_stats:
data:
aws_snapshots: "{{ snapshot_stat | items2dict }}"

Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
# },
# ...
# ]
aws_ec2_snapshot_query: "[].{snapshot_id: snapshot_id, vol_id: volume.id, device: volume.attachment_set[?instance_id=='{{ instance_id }}'].device | [0]}"
aws_ec2_snapshot_query: "[].{snapshot_id: snapshot_id, vol_id: volume.id, device: volume.attachment_set[?instance_id=='{{ instance_id }}'].device | [0]}"

0 comments on commit 2cd3ec6

Please sign in to comment.