From da0b146c61301c73ac7cc160bf211218f9442d0c Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Thu, 22 Dec 2022 14:48:56 +1100 Subject: [PATCH] Linaro mirror: shrink volume, add letsencrypt cert handlers As noted inline, this server has a smaller volume, so manually shrink the openafs cache size. Change-Id: Ia9fb686c4abd3c17bbc143cfaedcef5f31f19d5e --- .../host_vars/mirror01.regionone.linaro.opendev.org.yaml | 8 ++++++++ .../roles/letsencrypt-create-certs/handlers/main.yaml | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 inventory/service/host_vars/mirror01.regionone.linaro.opendev.org.yaml diff --git a/inventory/service/host_vars/mirror01.regionone.linaro.opendev.org.yaml b/inventory/service/host_vars/mirror01.regionone.linaro.opendev.org.yaml new file mode 100644 index 0000000000..4bb56ffc14 --- /dev/null +++ b/inventory/service/host_vars/mirror01.regionone.linaro.opendev.org.yaml @@ -0,0 +1,8 @@ +letsencrypt_certs: + mirror01-regionone-linaro-main: + - mirror01.regionone.linaro.opendev.org + - mirror.regionone.linaro.opendev.org + +# Allocated 100GB volume for this mirror, so openafs cache has to be < +# 95%; we go for 45gb +openafs_client_cache_size: '45000000' diff --git a/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml b/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml index a643da5fa7..dc89884991 100644 --- a/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml +++ b/playbooks/roles/letsencrypt-create-certs/handlers/main.yaml @@ -198,6 +198,9 @@ - name: letsencrypt updated mirror02-gra1-ovh-main include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml +- name: letsencrypt updated mirror01-regionone-linaro-main + include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml + - name: letsencrypt updated mirror02-regionone-linaro-us-main include_tasks: roles/letsencrypt-create-certs/handlers/restart_apache.yaml