From 57c7a76815a3dbf3e1936e67cc40e6739aaa793e Mon Sep 17 00:00:00 2001 From: Ahmed mamlouk Date: Tue, 29 Aug 2023 22:44:48 -0400 Subject: [PATCH] Bypassing GeoIP API key Bypass the "CVMFS_GEO_LICENSE_KEY not set" error message produced by cvmfs_server add-replica by setting the server variable "CVMFS_GEO_DB_FILE to NONE" . --- tasks/stratum1.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/stratum1.yml b/tasks/stratum1.yml index 6a502ae..3b8ae23 100644 --- a/tasks/stratum1.yml +++ b/tasks/stratum1.yml @@ -43,6 +43,14 @@ dest: /etc/cvmfs/server.local when: cvmfs_geo_license_key is defined +- name: Bypassing GeoIP API key + ansible.builtin.copy: + content: | + CVMFS_GEO_DB_FILE=NONE + mode: 0400 + dest: /etc/cvmfs/server.local + when: cvmfs_geo_license_key is not defined + - name: Ensure replicas are configured ansible.builtin.command: >- /usr/bin/cvmfs_server add-replica -o {{ item.owner | default('root') }}