Defaults to Li SR3 repo config provided by upstream Int/Pack.
Can be overridden to install different ODL repo configs, and therefore
different ODL versions.
Other vars, like the karaf feature repos, would also need to be updated
if a different version of ODL is to be installed.
Change-Id: I33ee6cfe461d7dc1fda27a4107025faf6684b24f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
+++ /dev/null
-[opendaylight-3-candidate]
-name=CentOS CBS OpenDaylight Lithium candidate repository
-baseurl=http://cbs.centos.org/repos/nfv7-opendaylight-3-candidate/$basearch/os/
-enabled=1
-gpgcheck=0
-- name: Add ODL yum repo
- copy:
- src=opendaylight-3-candidate.repo
- dest=/etc/yum.repos.d/
+- name: Download ODL yum repo
+ get_url:
+ url={{ rpm_repo_url }}
+ dest=/etc/yum.repos.d/{{ rpm_repo_file }}
+- name: Set ODL yum repo file properties
+ file:
+ path=/etc/yum.repos.d/{{ rpm_repo_file }}
owner=root
group=root
mode=0644
# rpm_path: Install ODL from a local path or remote URL
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"
+rpm_repo_file: "opendaylight-33-release.repo"
+rpm_repo_url: "https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=rpm/example_repo_configs/opendaylight-33-release.repo;hb=refs/heads/master"
+
# This will be passed as the `name` param to the Ansible `yum` module.
# `name` param docs: "You can also pass a url or a local path to a rpm file."
# See: http://docs.ansible.com/ansible/yum_module.html