SUSE: Add ability to configure external mirror for openSUSE

Allow deployers to choose a specific mirror for the OBS packages
by setting the 'galera_server_opensuse_mirror_obs_url' variable

Change-Id: Ie8b7b448dd5ed73bb6c4ac8128064d68fd578e57
This commit is contained in:
Markos Chandras 2017-09-07 10:38:01 +01:00
parent 42edfdbede
commit df18e4ecbe
2 changed files with 5 additions and 1 deletions

View File

@ -189,3 +189,7 @@ galera_disable_privatedevices: no
# Allow the playbook to orchestrate service restart handlers
galera_external_restart_handlers: no
## Set default mirror for openSUSE repositories
# NOTE(hwoarang): Ensure that the full path to the 'opensuse' directory is used.
#galera_server_opensuse_mirror_obs_url: "http://widehat.opensuse.org"

View File

@ -15,7 +15,7 @@
_galera_repo:
- name: "OBS:server_database"
uri: "http://download.opensuse.org/repositories/server:/database/openSUSE_Leap_{{ ansible_distribution_version }}"
uri: "{{ galera_server_opensuse_mirror_obs_url | default('http://download.opensuse.org') }}/repositories/server:/database/openSUSE_Leap_{{ ansible_distribution_version }}"
galera_server_required_distro_packages:
- galera-3