Fix issue with system installed xtrabackup
The change adds a task to ensure that the system provided xtrabackup package is removed before installing the downloaded version using the deb. This is required to ensure that there are no version conflicts when installing the package. The change also corrects the version of the galera server repo in the defaults directory. While the repo correct version of mariadb is being installed the name of the assumed repo is wrong. Closes-Bug: #1513459 Change-Id: I63cb546cf5a4386320f01ed6f2120dd7c8341335 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
52b587f3bb
commit
19a174be95
@ -36,6 +36,23 @@
|
||||
tags:
|
||||
- galera-client-apt-packages
|
||||
|
||||
# TODO(cloudnull) -- Remove this after the Mitaka release
|
||||
# This task simply removes the system version of
|
||||
# percona-xtrabackup and xtrabackup if found the
|
||||
# purpose is to ensure that "if" the system version
|
||||
# of the binary is installed its first removed in
|
||||
# favor of the actual upstream package being used in
|
||||
# the next task.
|
||||
- name: UnInstall system xtrabackup packages
|
||||
apt:
|
||||
pkg: "{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- percona-xtrabackup
|
||||
- xtrabackup
|
||||
tags:
|
||||
- galera-client-apt-packages
|
||||
|
||||
- name: Install galera package
|
||||
apt:
|
||||
deb: "{{ galera_client_package_path }}"
|
||||
|
@ -77,7 +77,7 @@ galera_gpg_keys:
|
||||
hash_id: '0x1c4cbdcdcd2efd2a'
|
||||
|
||||
# Repositories
|
||||
galera_apt_repo_url: "https://mirror.rackspace.com/mariadb/repo/5.5/ubuntu"
|
||||
galera_apt_repo_url: "https://mirror.rackspace.com/mariadb/repo/10.0/ubuntu"
|
||||
galera_apt_repo:
|
||||
repo: "deb {{ galera_apt_repo_url }} {{ ansible_distribution_release }} main"
|
||||
state: "present"
|
||||
|
@ -47,12 +47,29 @@
|
||||
tags:
|
||||
- galera-apt-packages
|
||||
|
||||
# TODO(cloudnull) -- Remove this after the Mitaka release
|
||||
# This task simply removes the system version of
|
||||
# percona-xtrabackup and xtrabackup if found the
|
||||
# purpose is to ensure that "if" the system version
|
||||
# of the binary is installed its first removed in
|
||||
# favor of the actual upstream package being used in
|
||||
# the next task.
|
||||
- name: UnInstall system xtrabackup packages
|
||||
apt:
|
||||
pkg: "{{ item }}"
|
||||
state: absent
|
||||
with_items:
|
||||
- percona-xtrabackup
|
||||
- xtrabackup
|
||||
tags:
|
||||
- galera-apt-packages
|
||||
|
||||
- name: Install galera package
|
||||
apt:
|
||||
deb: "{{ galera_package_path }}"
|
||||
force: yes
|
||||
tags:
|
||||
- galera-client-apt-packages
|
||||
- galera-apt-packages
|
||||
|
||||
- name: Install pip packages
|
||||
pip:
|
||||
|
Loading…
x
Reference in New Issue
Block a user