Connect ODL to XCI 52/69752/4
authorManuel Buil <mbuil@suse.com>
Wed, 21 Mar 2018 11:32:34 +0000 (12:32 +0100)
committerManuel Buil <mbuil@suse.com>
Wed, 21 Mar 2018 12:08:03 +0000 (13:08 +0100)
XCI will generate a variable called odl_repo_url which will point
to a repo to fetch ODL. This is the patch:

https://gerrit.opnfv.org/gerrit/#/c/53173/9

Change-Id: Idc618735ecc1c9ebefdf7c2423584f8285b6fb15
Signed-off-by: Manuel Buil <mbuil@suse.com>
vars/main.yml

index c4e503c6e9c4df87783865a20618b55d6695017b..f8803cb4231819570810b8086c5e810caebcee39 100755 (executable)
@@ -62,12 +62,12 @@ 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_url: "https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo"
-suse_rpm_repo_url: "https://download.opensuse.org/repositories/Virtualization:/NFV/openSUSE_Leap_42.3/"
+rpm_repo_url: "{{ odl_repo_url | default('https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-devel.repo') }}"
+suse_rpm_repo_url: "{{ odl_repo_url | default('https://download.opensuse.org/repositories/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"
-deb_repo_url: "ppa:odl-team/nitrogen"
+deb_repo_url: "{{ odl_repo_url | default('ppa:odl-team/nitrogen') }}"
 
 # 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."