---
+# Check the OS and branch for either RPM or Deb installs
+
+# Docs:
+# `ansible_os_family` param: Operating System family (Debian/RedHat)
+# `ansible_distribtion` param: Operating system (Debian/Ubuntu/CentOS etc.)
+# `ansible_distribution_version` param: The complete version of the OS
+# `ansible_distribution_major_version` param: The major version of the OS
+
+# The .debs are currently hosted in OpenSUSE Build Service (OBS).
+# In OBS, the name of the .deb repository for Debian contains the OS name
+# in the form Debian_{major_version} (eg: Debian_8.0).
- set_fact:
os="{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.0"
when:
ansible_distribution == "Debian"
+
+# In OBS, the name of the .deb repository for Ubuntu contains the OS name
+# in the form xUbuntu_{version} (eg: xUbuntu_16.04).
- set_fact:
os="x{{ ansible_distribution }}_{{ ansible_distribution_version }}"
when:
ansible_distribution == "Ubuntu"
+# Install ODL .deb using debian repo
- include: install_odl_via_deb_repo.yml
when:
- ansible_os_family == "Debian"
- install_method == "deb_repo"
+# Install ODL using .deb URL or local path to a .deb file
+- include: install_odl_via_deb_path.yml
+ when:
+ - ansible_os_family == "Debian"
+ - install_method == "deb_path"
+
+# Install ODL using Yum repo config
- include: install_odl_via_rpm_repo.yml
when:
- - ansible_os_family == "CentOS"
+ - ansible_os_family == "RedHat"
- 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 == "CentOS"
+ - ansible_os_family == "RedHat"
- install_method == "rpm_path"
\ No newline at end of file
# rpm_repo: Install ODL using its Yum repo config
# rpm_path: Install ODL from a local path or remote URL
# dep_repo: Install ODL using a debian repository
-install_method: "deb_repo"
+install_method: "rpm_repo"
# 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"
# NB: Local paths must be relative the host being configured (think `/vagrant`)
# NB: This will only take effect when `install_method` is "rpm_path"
# Default to the Boron RPM hosted on the CentOS Community Build System
-rpm_path: "http://cbs.centos.org/repos/nfv7-opendaylight-5-release/x86_64/os/Packages/opendaylight-4.2.0-1.el7.noarch.rpm"
\ No newline at end of file
+rpm_path: "http://cbs.centos.org/repos/nfv7-opendaylight-5-release/x86_64/os/Packages/opendaylight-4.2.0-1.el7.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,
+# ansible will attempt to download deb before installing."
+# See: http://docs.ansible.com/ansible/apt_module.html
+# This is used when `install_method` is "deb_path"
+deb_path: "http://download.opensuse.org/repositories/home:/akshitajha/{{ os }}/all/opendaylight_5.0.0-1_all.deb"
\ No newline at end of file