diff --git a/defaults/main.yml b/defaults/main.yml index 5069167..cb87c76 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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" diff --git a/releasenotes/notes/opensuse-mirror-url-variable-865a97abb4c61430.yaml b/releasenotes/notes/opensuse-mirror-url-variable-865a97abb4c61430.yaml new file mode 100644 index 0000000..0fa3d21 --- /dev/null +++ b/releasenotes/notes/opensuse-mirror-url-variable-865a97abb4c61430.yaml @@ -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/ diff --git a/vars/suse-42.yml b/vars/suse-42.yml index 8a96086..58c15b6 100644 --- a/vars/suse-42.yml +++ b/vars/suse-42.yml @@ -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 }}"