SUSE: Add ability to configure external mirror for openSUSE

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

Change-Id: I51e78cfc3dc2b84141e8a19f31bfc36a81113ab3
This commit is contained in:
Markos Chandras 2017-09-07 10:38:55 +01:00
parent 83a34e0ca9
commit 9774f0c068
3 changed files with 10 additions and 1 deletions

View File

@ -57,3 +57,6 @@ galera_ssl_ca_cert: /etc/ssl/certs/galera-ca.pem
# The path to Galera CA certificate file on the deployment host
galera_user_ssl_ca_cert: /etc/openstack_deploy/self_signed_certs/galera-ca.pem
## Set default mirror for openSUSE repositories
# NOTE(hwoarang): Ensure that the full path to the 'opensuse' directory is used.
#galera_client_opensuse_mirror_obs_url: "http://widehat.opensuse.org"

View File

@ -0,0 +1,6 @@
---
features:
- |
Deployers can set ``galera_client_opensuse_mirror_obs_url`` to use their
preferred mirror for the galera server OBS packages. The full list of
mirrors and their capabilities can be obtained at http://mirrors.opensuse.org/

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
_galera_client_repo_url: "http://download.opensuse.org/repositories/server:/database/openSUSE_Leap_{{ ansible_distribution_version }}"
_galera_client_repo_url: "{{ galera_client_opensuse_mirror_obs_url | default('http://download.opensuse.org') }}/repositories/server:/database/openSUSE_Leap_{{ ansible_distribution_version }}"
_galera_client_repo:
- name: "OBS:server_database"
uri: "{{ galera_client_repo_url }}"