From 139b9b68fd94f5ec649afdf4293d4f9b1f2345eb Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Mon, 18 Jun 2018 15:20:55 -0400 Subject: [PATCH] Allow configuring custom repo host In order to allow using mirrors, this introduces a new variable which can control the host for the percona repo: galera_percona_xtrabackup_repo_host Change-Id: I4d9d408f99608f1625dac9e0802e8d8d77b0f48b --- vars/redhat-7.yml | 2 +- vars/ubuntu.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/redhat-7.yml b/vars/redhat-7.yml index 64f5fc69..23427230 100644 --- a/vars/redhat-7.yml +++ b/vars/redhat-7.yml @@ -74,7 +74,7 @@ _galera_repo: gpgkey: "https://yum.mariadb.org/RPM-GPG-KEY-MariaDB" _galera_percona_xtrabackup_repo: - repo: "http://repo.percona.com/release/$releasever/RPMS/$basearch" + repo: "http://{{ galera_percona_xtrabackup_repo_host | default('repo.percona.com') }}/release/$releasever/RPMS/$basearch" state: "{{ (use_percona_upstream | bool) | ternary('present', 'absent') }}" galera_server_percona_distro_packages: diff --git a/vars/ubuntu.yml b/vars/ubuntu.yml index d1daaf51..e637f656 100644 --- a/vars/ubuntu.yml +++ b/vars/ubuntu.yml @@ -89,7 +89,7 @@ galera_server_percona_distro_packages: # Repositories _galera_percona_xtrabackup_repo: - repo: "deb http://repo.percona.com/apt {{ ansible_distribution_release }} main" + repo: "deb http://{{ galera_percona_xtrabackup_repo_host | default('repo.percona.com') }}/apt {{ ansible_distribution_release }} main" state: "{{ (use_percona_upstream | bool) | ternary('present', 'absent') }}" filename: "Percona"