Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend create vm job template #97

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]}"