Skip to content

Commit

Permalink
Prevent latest mariadb version
Browse files Browse the repository at this point in the history
Latest mariadb version has a bug that prevents clustering from
behaving properly in bootstrap.

This setups the repo for the galera_client to the same as
galera_server, to have the same client version.

Change-Id: Ia1d7a2c664c6c11ad698a915162281c11a344067
  • Loading branch information
evrardjp authored and mnaser committed Feb 8, 2018
1 parent 72cc31a commit 3524b83
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Expand Up @@ -24,6 +24,7 @@ galera_client_repo_url: "{{ galera_repo_url | default(_galera_client_repo_url) }

# Set the major version to use for the galera repo
galera_client_major_version: 10.1
galera_client_minor_version: 30

# Set the repo information for the MariaDB repository
galera_client_repo: "{{ _galera_client_repo }}"
Expand Down
2 changes: 1 addition & 1 deletion vars/redhat-7.yml
Expand Up @@ -16,7 +16,7 @@
# TODO(odyssey4me):
# The use of 'galera_client_yum_repo_url' below is for backwards compatibility
# to settings released in Newton. It can be removed in Queens.
_galera_client_repo_url: "{{ galera_client_yum_repo_url | default('http://yum.mariadb.org/' ~ galera_client_major_version ~ '/centos7-amd64/') }}"
_galera_client_repo_url: "{{ galera_client_yum_repo_url | default('https://downloads.mariadb.com/MariaDB/mariadb-' ~ galera_client_major_version ~ '.' ~ galera_client_minor_version ~ '/yum/centos7-amd64/') }}"
_galera_client_repo:
state: "present"
name: MariaDB
Expand Down
2 changes: 1 addition & 1 deletion vars/suse-42.yml
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

_galera_client_repo_url: "http://yum.mariadb.org/{{ galera_client_major_version }}/sles/12/x86_64"
_galera_client_repo_url: "https://downloads.mariadb.com/MariaDB/mariadb-{{ galera_client_major_version }}.{{ galera_client_minor_version }}/yum/opensuse42-amd64"
_galera_client_repo:
name: MariaDB
description: "MariaDB Repo"
Expand Down
2 changes: 1 addition & 1 deletion vars/ubuntu-16.04.yml
Expand Up @@ -17,7 +17,7 @@
# TODO(odyssey4me):
# The use of 'galera_client_apt_repo_url' below is for backwards compatibility
# to settings released in Newton. It can be removed in Queens.
_galera_client_repo_url: "{{ galera_client_apt_repo_url | default('http://mirror.rackspace.com/mariadb/repo/' ~ galera_client_major_version ~ '/ubuntu') }}"
_galera_client_repo_url: "{{ galera_client_apt_repo_url | default('https://downloads.mariadb.com/MariaDB/mariadb-' ~ galera_client_major_version ~ '.' ~ galera_client_minor_version ~ '/repo/ubuntu') }}"
_galera_client_repo: "deb {{ galera_client_repo_url }} {{ ansible_distribution_release }} main"

galera_client_distro_packages:
Expand Down

0 comments on commit 3524b83

Please sign in to comment.