versions:
- 25
- 26
+ - name: OpenSUSE
+ versions:
+ - 42
categories:
- cloud
- clustering
--- /dev/null
+- name: Add ODL zypper repo
+ zypper_repository:
+ repo: "{{ suse_rpm_repo_url }}"
+ name: opendaylight
+ auto_import_keys: yes
+ runrefresh: yes
# Install ODL using Yum repo config
- include: install_odl_via_rpm_repo.yml
when:
- - ansible_os_family == "RedHat"
+ - (ansible_os_family == "RedHat") or
+ (ansible_os_family == "Suse")
- install_method == "rpm_repo"
# Install ODL using rpm URL or a local path to a rpm file
- include: install_odl_via_rpm_path.yml
when:
- - ansible_os_family == "RedHat"
+ - (ansible_os_family == "RedHat") or
+ (ansible_os_family == "Suse")
- install_method == "rpm_path"
package:
name={{ rpm_path }}
state=present
+ when: ansible_os_family == 'RedHat'
+
+- name: Install ODL via RPM path
+ package:
+ name={{ suse_rpm_path }}
+ state=present
+ when: ansible_os_family == 'Suse'
+
+
---
- include: add_odl_yum_repo.yml
+ when: ansible_os_family == "RedHat"
+
+- include: add_odl_zypper_repo.yml
+ when: ansible_os_family == "Suse"
- name: Install ODL via RPM repo
package:
# URL of the .repo config to use when installing ODL from a repo
# NB: This will only take effect when `install_method` is "rpm_repo"
rpm_repo_url: "https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-6-release.repo;hb=refs/heads/master"
+suse_rpm_repo_url: "https://download.opensuse.org/repositories/home:/mosquetero:/branches:/Virtualization:/NFV/openSUSE_Leap_42.3/"
# URL of the deb repository to use when installing ODL from a repo
# NB: This will only take effect when `install_method` is "deb_repo"
# NB: This will only take effect when `install_method` is "rpm_path"
# Default to the Carbon RPM hosted on the CentOS Community Build System
rpm_path: "http://cbs.centos.org/repos/nfv7-opendaylight-60-release/x86_64/os/Packages/opendaylight-6.0.0-1.el7.noarch.rpm"
+# Default to the Nitrogen RPM hosted on the openSUSE OBS
+suse_rpm_path: "https://download.opensuse.org/repositories/home:/mosquetero:/branches:/Virtualization:/NFV/openSUSE_Leap_42.3/noarch/opendaylight-7.0.0-11.1.noarch.rpm"
# This will be passed as the `deb` param to the Ansible `apt` module.
# `deb` param docs: "Path to a .deb package on the remote machine. If :// in the path,