From f6dc69511f958b28f8d4f82642ce4ffcb1c34a03 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 3 Dec 2024 09:39:00 -0800 Subject: [PATCH] Trigger infra-prod-service-borg-backup when vars update Previously we only triggered the backup job when playbooks and roles updated. Now that we are managing retirement and purging via host (and possibly group) vars update the job file triggers to execute when these files update too. Change-Id: Id4aa3a8ec4639d10238b3764d744a5ff206decce --- .../host_vars/backup02.ca-ymq-1.vexxhost.opendev.org.yaml | 1 + zuul.d/infra-prod.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/inventory/service/host_vars/backup02.ca-ymq-1.vexxhost.opendev.org.yaml b/inventory/service/host_vars/backup02.ca-ymq-1.vexxhost.opendev.org.yaml index 84bede921b..4aa3f3f644 100644 --- a/inventory/service/host_vars/backup02.ca-ymq-1.vexxhost.opendev.org.yaml +++ b/inventory/service/host_vars/backup02.ca-ymq-1.vexxhost.opendev.org.yaml @@ -1,3 +1,4 @@ +# Retire and purge old uneeded backups to recover disk space borg_retire_users: - borg-ethercalc02 - borg-ask01 diff --git a/zuul.d/infra-prod.yaml b/zuul.d/infra-prod.yaml index daad46d5d0..b14135c7a0 100644 --- a/zuul.d/infra-prod.yaml +++ b/zuul.d/infra-prod.yaml @@ -318,6 +318,10 @@ playbook_name: service-borg-backup.yaml files: - inventory/base + - inventory/service/host_vars/backup02.ca-ymq-1.vexxhost.opendev.org.yaml + - inventory/service/host_vars/backup01.ord.rax.opendev.org.yaml + - inventory/service/group_vars/borg-backup.yaml + - inventory/service/group_vars/borg-backup-server.yaml - playbooks/service-borg-backup.yaml - playbooks/roles/install-borg/ - playbooks/roles/borg-backup/