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

GCP: Add support for bare metal instances #780

Merged
merged 3 commits into from
Oct 8, 2024
Merged
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
3 changes: 2 additions & 1 deletion automation/roles/cloud-resources/tasks/gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@
metadata:
ssh-keys: "root:{{ ssh_key_content }}"
scheduling:
on_host_maintenance: "{{ 'TERMINATE' if (server_spot | bool or server_type is search('metal')) else 'MIGRATE' }}"
preemptible: "{{ server_spot | default(gcp_compute_instance_preemptible | default(false)) | bool }}"
tags:
items:
Expand Down Expand Up @@ -468,7 +469,7 @@
host: "{{ item.networkInterfaces[0].accessConfigs[0].natIP }}"
port: 22
delay: 5
timeout: 300
timeout: "{{ 1800 if server_type is search('metal') else 300 }}" # timeout 30 minutes for bare metal instances and 5 minutes for regular VMs
loop: "{{ server_result.results }}"
loop_control:
label: "{{ item.networkInterfaces[0].accessConfigs[0].natIP | default('N/A') }}"
Expand Down
Loading