summaryrefslogtreecommitdiff
path: root/roles/add_mariadb_repo
diff options
context:
space:
mode:
authorRodolfo Alonso Hernandez <ralonsoh@redhat.com>2020-01-14 13:24:35 +0000
committerRodolfo Alonso Hernandez <ralonsoh@redhat.com>2020-01-16 10:05:36 +0000
commit1986865bd5587d303f79f54ff525b38b0bf98bb6 (patch)
tree6205db1542737922a0033dcffc9fb3ac1e65ef27 /roles/add_mariadb_repo
parentae67ae824ce38da158777ad6bd9a23e1088b115a (diff)
downloadneutron-1986865bd5587d303f79f54ff525b38b0bf98bb6.tar.gz
Add MariaDB 10.3 repository for Ubuntu Bionic
In order to execute the periodic job "neutron-tempest-mariadb-full", using Ubuntu Bionic and MariaDB, a newer version is needed than the default package version distributed (10.1). Devstack gates are tested with MySQL 5.7. Current Neutron DB schema is not working with the reported version 10.1. Change-Id: Ie2b5f85a9c0fc26676d44074424cf5a699303805 Related-Bug: #1855912 Related-Bug: #1841907
Diffstat (limited to 'roles/add_mariadb_repo')
-rw-r--r--roles/add_mariadb_repo/tasks/main.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/add_mariadb_repo/tasks/main.yaml b/roles/add_mariadb_repo/tasks/main.yaml
new file mode 100644
index 0000000000..ddf54d00b5
--- /dev/null
+++ b/roles/add_mariadb_repo/tasks/main.yaml
@@ -0,0 +1,17 @@
+- name: Add apt key from hkp://keyserver.ubuntu.com:80
+ shell:
+ cmd: apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
+ executable: /bin/bash
+ become: yes
+ when:
+ - ansible_facts['distribution_release'] == "bionic"
+ - ansible_facts['distribution'] == "Ubuntu"
+
+- name: Add MariaDB 10.3 repository (https://bugs.launchpad.net/neutron/+bug/1855912)
+ apt_repository:
+ repo: deb [arch=amd64,arm64,ppc64el] http://ftp.hosteurope.de/mirror/mariadb.org/repo/10.3/ubuntu bionic main
+ state: present
+ become: yes
+ when:
+ - ansible_facts['distribution_release'] == "bionic"
+ - ansible_facts['distribution'] == "Ubuntu"