Add Bionic testing

Now that bionic testing is added into the tests repos, we can
start testing it in the repo.

The /etc/apt/sources.list.d/ is not created in all the bionic
images, so we ensure it is created before using it.

Depends-On: https://review.openstack.org/#/c/566959/
Change-Id: I05c1bc8a0413dbb88514905b6fdf33304829484f
This commit is contained in:
Jean-Philippe Evrard 2018-05-08 22:03:21 +02:00
parent 7010fe4856
commit fea1b6bc64
4 changed files with 54 additions and 0 deletions

View File

@ -22,6 +22,7 @@ galaxy_info:
platforms:
- name: Ubuntu
versions:
- bionic
- xenial
- name: EL
versions:

View File

@ -55,6 +55,13 @@
tags:
- galera-client-apt-keys
- name: Ensure the sources.list.d folder exists
file:
path: "/etc/apt/sources.list.d/"
state: directory
tags:
- galera-client-repos
# TODO: Remove the following two tasks in Pike
# They're only required during upgrades transitioning to a
# statically named apt sources file.

44
vars/ubuntu-18.04.yml Normal file
View File

@ -0,0 +1,44 @@
---
# Copyright 2016, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Repositories
# 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://downloads.mariadb.com/MariaDB/mariadb-' ~ galera_client_major_version ~ '.' ~ galera_client_minor_version ~ '/repo/ubuntu') }}"
# Temporarily replace {{ ansible_distribution_release }} with artful, as bionic
# support is not provided yet
#_galera_client_repo: "deb {{ galera_client_repo_url }} {{ ansible_distribution_release }} main"
_galera_client_repo: "deb {{ galera_client_repo_url }} artful main"
galera_client_distro_packages:
- build-essential
- libaio1
- libc6
- libgcc1
- libgcrypt20
- libmariadbclient-dev
- libssl-dev
- libstdc++6
- mariadb-client
- "mariadb-client-core-{{ galera_client_major_version }}"
- python-dev
# Galera GPG Keys
_galera_client_gpg_keys:
- key_name: 'mariadb'
keyserver: 'hkp://keyserver.ubuntu.com:80'
fallback_keyserver: 'hkp://p80.pool.sks-keyservers.net:80'
hash_id: '0xF1656F24C74CD1D8'

View File

@ -18,6 +18,7 @@
- openstack-ansible-linters
- openstack-ansible-functional-centos-7
- openstack-ansible-functional-opensuse-423
- openstack-ansible-functional-ubuntu-bionic
- openstack-ansible-functional-ubuntu-xenial
- openstack-ansible-ssl-galera_server-opensuse-423
- openstack-ansible-ssl-galera_server-ubuntu-xenial
@ -31,4 +32,5 @@
- openstack-ansible-linters
- openstack-ansible-functional-centos-7
- openstack-ansible-functional-opensuse-423
- openstack-ansible-functional-ubuntu-bionic
- openstack-ansible-functional-ubuntu-xenial