From b5d6a25b0fca56923adda11d05e57ba04b3f0167 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik Date: Fri, 22 Dec 2023 22:05:45 +0300 Subject: [PATCH] Add "preemptible" option for GCP compute (default: false) --- roles/cloud-resources/tasks/gcp.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/cloud-resources/tasks/gcp.yml b/roles/cloud-resources/tasks/gcp.yml index bb48423a7..51cf27190 100644 --- a/roles/cloud-resources/tasks/gcp.yml +++ b/roles/cloud-resources/tasks/gcp.yml @@ -241,6 +241,8 @@ type: ONE_TO_ONE_NAT metadata: ssh-keys: "root:{{ ssh_key_content }}" + scheduling: + preemptible: "{{ gcp_compute_instance_preemptible | default(false) | bool }}" tags: items: - "{{ patroni_cluster_name }}"