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: I6dc2aa249c9935e5570509af08bb2aeba8afef76
This commit is contained in:
Markos Chandras 2017-07-11 10:58:20 +01:00
parent 92fb2b5284
commit 26950b3e55
5 changed files with 12 additions and 1 deletions

View File

@ -23,6 +23,14 @@ galaxy_info:
- name: Ubuntu
versions:
- xenial
- name: EL
versions:
- 7
- name: opensuse
versions:
- 42.1
- 42.2
- 42.3
categories:
- cloud
- python

View File

@ -17,7 +17,7 @@
package:
name: "{{ designate_distro_packages }}"
state: "{{ designate_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

View File

@ -1,3 +1,4 @@
---
# Copyright 2016, Intel Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");

1
vars/suse-42.yml Symbolic link
View File

@ -0,0 +1 @@
redhat-7.yml

View File

@ -1,3 +1,4 @@
---
# Copyright 2016, Intel Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");