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: Ibb3a6633724ce3555d5262fb44914d6cddfe1481
This commit is contained in:
Markos Chandras 2017-07-11 14:00:42 +01:00
parent b562e3a9d9
commit 1d0d71e5cc
3 changed files with 10 additions and 1 deletions

@ -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

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

1
vars/suse-42.yml Symbolic link

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