Add support for the openSUSE Leap distributions

Add support for the openSUSE Leap distributions. Nothing special is
required for this except for adding the appropriate distro variables
file and also update the zypper cache before package installation.

Change-Id: If07ef32f9e39272b4c7fadb438df33f188b186cd
This commit is contained in:
Markos Chandras 2017-11-23 10:25:49 +00:00
parent c3e191037d
commit 8df6d45a57
4 changed files with 27 additions and 1 deletions

View File

@ -26,6 +26,9 @@ galaxy_info:
- name: EL
versions:
- 7
- name: opensuse
versions:
- 42.3
galaxy_tags:
- cloud
- openstack

View File

@ -17,7 +17,7 @@
package:
name: "{{ barbican_distro_packages }}"
state: "{{ barbican_package_state }}"
update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
update_cache: "{{ (ansible_pkg_mgr in ['apt', 'zypper']) | ternary('yes', omit) }}"
cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
register: install_packages
until: install_packages | success

21
vars/suse.yml Normal file
View File

@ -0,0 +1,21 @@
# Copyright 2017, SUSE Linux GmbH.
#
# 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.
barbican_distro_packages:
- gettext-runtime
- git-core
- libffi-devel
- libopenssl-devel
- postgresql-devel
- python-devel

View File

@ -19,6 +19,7 @@
jobs:
- openstack-ansible-linters
- openstack-ansible-functional-centos-7
- openstack-ansible-functional-opensuse-423
- openstack-ansible-functional-ubuntu-xenial
experimental:
jobs:
@ -27,4 +28,5 @@
jobs:
- openstack-ansible-linters
- openstack-ansible-functional-centos-7
- openstack-ansible-functional-opensuse-423
- openstack-ansible-functional-ubuntu-xenial