Replace install_method by odl_install_method 92/75192/1
authorManuel Buil <mbuil@suse.com>
Tue, 14 Aug 2018 13:46:07 +0000 (15:46 +0200)
committerManuel Buil <mbuil@suse.com>
Tue, 14 Aug 2018 13:47:27 +0000 (15:47 +0200)
install_method is too general and might clash with variables from other
playbooks in complex systems. This is happening in openstack-ansible

Change-Id: Ida8ad8f1fc04c619a9e04a103d3df520cf57fb88
Signed-off-by: Manuel Buil <mbuil@suse.com>
README.markdown
examples/deb_path.yml
examples/deb_repo.yml
examples/rpm_path.yml
tasks/install_odl.yml
vars/main.yml

index 097f351b86f5e00dc181e998f8f256ef2450da08..3676f7cb5dcb53f6253c4464161171bf21e2c656 100644 (file)
@@ -59,8 +59,8 @@ The Ansible role will handle opening this port in FirewallD if it's active.
 ### Install Method
 
 OpenDaylight can be installed either via an RPM or a .deb depending on the operating system.
-For RedHat based OSs, the valid options for `install_method` are `rpm_repo` or `rpm_path`.
-For Debian based OSs, `install_method` can accept either `deb_repo` or `deb_path`.
+For RedHat based OSs, the valid options for `odl_install_method` are `rpm_repo` or `rpm_path`.
+For Debian based OSs, `odl_install_method` can accept either `deb_repo` or `deb_path`.
 
 ## Installing OpenDaylight
 
index d8a6dd6c83b69ee40bf23f3c2194fb340817ded5..052795c7cfb1404ca644d21b709cb15dd9ddbaad 100644 (file)
@@ -5,4 +5,4 @@
     - role: opendaylight
       # Install ODL from a local/remote .deb path. Not including
       # this causes the install to use a repo for the RPM.
-      install_method: "deb_path"
+      odl_install_method: "deb_path"
index 923a8d8ecf1ee579adc7a6dfcb349f5e009537a4..395fa7553a799249ca8051f682e60f2f7aeeb436 100644 (file)
@@ -5,4 +5,4 @@
     - role: opendaylight
       # Install ODL from a Debian repo. Not including this
       # causes the install to use a repo for the RPM.
-      install_method: "deb_repo"
+      odl_install_method: "deb_repo"
index f09db9e49df8af0f2c21bd1b325cd98c4712ee06..3205f891e733b97c9a5724c646c69d0343179c92 100644 (file)
@@ -5,6 +5,6 @@
     - role: opendaylight
       # Install from a local/remote path to an ODL RPM. Not including this
       # causes the install to use a repo for the RPM, which is recommended.
-      install_method: "rpm_path"
+      odl_install_method: "rpm_path"
       # Accept default (local/remote) path to ODL RPM
       # rpm_path: ""
index 0f7068fe09bca27bb7a5305436beeebeed97872c..c5dc286012e242e7340cf48121659ca945c3f2db 100755 (executable)
@@ -9,24 +9,24 @@
 - include_tasks: install_odl_via_deb_repo.yml
   when:
     - ansible_os_family == "Debian"
-    - install_method == "deb_repo"
+    - odl_install_method == "deb_repo"
 
 # Install ODL using .deb URL or local path to a .deb file
 - include_tasks: install_odl_via_deb_path.yml
   when:
     - ansible_os_family == "Debian"
-    - install_method == "deb_path"
+    - odl_install_method == "deb_path"
 
 # Install ODL using Yum repo config
 - include_tasks: install_odl_via_rpm_repo.yml
   when:
     - (ansible_os_family == "RedHat") or
       (ansible_os_family == "Suse")
-    - install_method == "rpm_repo"
+    - odl_install_method == "rpm_repo"
 
 # Install ODL using rpm URL or a local path to a rpm file
 - include_tasks: install_odl_via_rpm_path.yml
   when:
     - (ansible_os_family == "RedHat") or
       (ansible_os_family == "Suse")
-    - install_method == "rpm_path"
+    - odl_install_method == "rpm_path"
index 65c2423f8daf630c0ea5bade57eb6555239d8b41..f3fcff1f424a4b872d8d81c01033910f34522422 100755 (executable)
@@ -58,7 +58,7 @@ akka_remoting_port: 2550
 #   rpm_path: Install ODL rpm from a local path or remote URL
 #   dep_repo: Install ODL using a debian repository
 #   deb_path: Install ODL .deb from a local path or remote URL
-install_method: "rpm_repo"
+odl_install_method: "rpm_repo"
 
 # We need this dictionary to translate from ODL version to the version number
 odl_version_dict:
@@ -68,12 +68,12 @@ odl_version_dict:
   nitrogen: 7
 
 # 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: This will only take effect when `odl_install_method` is "rpm_repo"
 rpm_repo_url: "{% if 'latest_release' not in odl_version %}https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-{{ odl_version_dict[odl_version] }}-devel.repo{% else %}https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-8-release.repo{% endif %}"
 suse_rpm_repo_url: "{% if 'latest_release' not in odl_version %}https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob_plain;f=packages/rpm/example_repo_configs/opendaylight-{{ odl_version_dict[odl_version] }}-opensuse-devel.repo{% else %}https://download.opensuse.org/repositories/Virtualization:/NFV/openSUSE_Leap_42.3/{% endif %}"
 
 # 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 `odl_install_method` is "deb_repo"
 # TODO: When deb snaps are built, point to a repo like rpm
 deb_repo_url: "deb http://ppa.launchpad.net/odl-team/oxygen/ubuntu {{ ansible_lsb.codename }} main"
 
@@ -81,7 +81,7 @@ deb_repo_url: "deb http://ppa.launchpad.net/odl-team/oxygen/ubuntu {{ ansible_ls
 # `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
 # NB: Local paths must be relative the host being configured (think `/vagrant`)
-# NB: This will only take effect when `install_method` is "rpm_path"
+# NB: This will only take effect when `odl_install_method` is "rpm_path"
 # Default to the release RPM hosted on the CentOS Community Build System
 rpm_path: "http://cbs.centos.org/repos/nfv7-opendaylight-82-release/x86_64/os/Packages/opendaylight-8.2.0-1.el7.noarch.rpm"
 # Default to the Nitrogen RPM hosted on the openSUSE OBS
@@ -91,7 +91,7 @@ suse_rpm_path: "https://download.opensuse.org/repositories/Virtualization:/NFV/o
 # `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"
+# This is used when `odl_install_method` is "deb_path"
 deb_path: ""
 
 # Distro on which quagga packages to be installed
@@ -136,4 +136,4 @@ quagga: false
 
 # Default ODL user credentials
 odl_nb_username: admin
-odl_nb_password: admin
\ No newline at end of file
+odl_nb_password: admin