SUSE: Use MariaDB package from the OBS repository

Use the Open Build Service server:database repository to get the
MariaDB package which contains proper galera support for openSUSE
Leap. This also renames the vars/suse.yml file to suse-42 in order
to support just the openSUSE Leap distributions which are more stable
than Tumbleweed.

Change-Id: I77fbc7447ac3908b904b0313b11dc1d5f82b5376
This commit is contained in:
Markos Chandras
2017-03-06 16:36:37 +00:00
parent e106ac12b2
commit 1a4c83af1c
2 changed files with 28 additions and 0 deletions

View File

@@ -13,6 +13,29 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# NOTE(hwoarang): zypper_repository/auto_import_keys added in 2.2
# so we need to manually refresh the repository and import the keys
# in order to work with older ansible versions.
- name: Add galera client zypper repository
zypper_repository:
refresh: yes
name: "{{ item.name }}"
repo: "{{ item.uri }}"
register: zypper_repository_added
with_items: "{{ galera_client_zypper_repo }}"
tags:
- galera-repos
# NOTE(hwoarang): We need to run this right after we add the repos and
# before we install any packages so it can't be a handler unless we
# move everything to pre_tasks
- name: Refresh galera client zypper repository
command: zypper --gpg-auto-import-keys ref
when: zypper_repository_added.changed
tags:
- skip_ansible_lint
- galera-repos
- name: Install galera zypper packages
zypper:
name: "{{ item }}"

View File

@@ -13,6 +13,11 @@
# 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_zypper_repo:
- name: "OBS:server_database"
uri: "{{ galera_client_repo_url }}"
galera_client_distro_packages:
- libbz2-devel
- gcc