Daniel Farrell [Wed, 18 Jul 2018 21:11:40 +0000 (21:11 +0000)]
Merge "Add tests for odl user/password feature"
Daniel Farrell [Wed, 18 Jul 2018 21:11:36 +0000 (21:11 +0000)]
Merge "Allow setting ODL NB REST password"
Taseer Ahmed [Thu, 28 Jun 2018 08:38:07 +0000 (13:38 +0500)]
Add tests for odl user/password feature
The new feature allows creating/deleting ODL users. This patchset
introduces tests to ensure everything works as expected. The tests
consists of creating and deleting the users. The verification is
done via running the CLI command and saving the output in variable.
Assertions are made whether on these variables, if the desired user
is present or absent in them.
This change also requires a new job to be added in the RelEng project.
The required RelEng patchset is:
Ib950fbb1f8952c794380af03c25f9f4987c65b73
Note: Originally cross verification via API calls was implemented.
But had to be dropped because ODL was not listening on the desired
port. This needs further debugging.
Change-Id: I702245e1456e12c5a64b4c8fe1810101edb5abce
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Taseer Ahmed [Mon, 25 Jun 2018 09:05:53 +0000 (14:05 +0500)]
Allow setting ODL NB REST password
Use custom ansible module. When placed under library,
Ansible will detect it automatically. Mirrors the Puppet
logic. Usage is explained in the examples section of the code.
JIRA: INTPAK-177
Change-Id: Ieecbf1dd9c0a923aaf9eff2fd85d391bed800d81
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Taseer Ahmed [Mon, 2 Jul 2018 10:35:37 +0000 (15:35 +0500)]
Add ansible-odl docs in its own repository.
Ansible-Opendaylight has docs, but are hosted in a different
repository. This patch places the docs in its own directory.
For now the work is based on the existing material present in
the Int/Pack repository.
JIRA: INTPAK-190
Change-Id: I2537318e7ea721206b8b1d5c89b518c46dc1c77f
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Taseer Ahmed [Wed, 4 Jul 2018 07:30:44 +0000 (12:30 +0500)]
Add tests for docs
Ansible-ODL docs are being moved to its own repository. For now,
docs build and linkcheck tests are added.
JIRA: INTPAK-190
Change-Id: I4bc1a2fa9f8755b67a5339d7cf6c0234542e4787
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Taseer Ahmed [Mon, 25 Jun 2018 16:16:41 +0000 (21:16 +0500)]
Add Coala linting tests for Ansible module
Change-Id: Ib34033834dabb1dbe33463fe71dcbcd8731f0e65
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
Daniel Farrell [Wed, 20 Jun 2018 19:00:16 +0000 (15:00 -0400)]
Update default rpm_path var 8.1->8.2
Change-Id: I840f2a80203451e48d62218e5115f62a814612dc
Jira: INTPAK-175
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 14 Jun 2018 02:01:23 +0000 (22:01 -0400)]
Update default ODL versions, add examples
* Add example for Fluorine CD repo install
* Use latest Oxygen release as default repo if latest not specified
* Remove old CBS testing repos, using CD Nexus repos now
Change-Id: I8412ae729fdadb09a283772fd667feb517ae10d9
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Manuel Buil [Wed, 25 Apr 2018 10:40:34 +0000 (12:40 +0200)]
Modify rpm_repo_url condition
So far, if odl_version was not defined, we would use the latest release.
Unfortunately, ansible 'lookup' will return an empty string if the
variable does not exist and thus odl_version will always be defined:
https://github.com/ansible/ansible/issues/17329
We use ansible 'lookup' in xci to collect the values from env variables
To overcome this, we will allow a new value for odl_version in XCI:
"latest_release". This patch adapts to that new possible value
Change-Id: Ie4d76ed576ddeded130a863f847cd51cb7491456
Signed-off-by: Manuel Buil <mbuil@suse.com>
Manuel Buil [Wed, 11 Apr 2018 12:41:21 +0000 (14:41 +0200)]
Replace include by include_tasks
Starting with ansible 2.4, when using include we get:
The use of 'include' for tasks has been deprecated.
Besides, there is a weird error at the openstack gates in which tasks
are not executed in the expected order and I was told that probably
the include syntax is breaking things as the ODL role is called using
the new include_role syntax.
Change-Id: I4faef6648543f70021b7b159ecd355236876bfe7
Signed-off-by: Manuel Buil <mbuil@suse.com>
Manuel Buil [Tue, 10 Apr 2018 14:53:36 +0000 (16:53 +0200)]
Fix problem in openstack gates
For unkown reasons, when using the plain ppa, apt sets the Ubuntu
version wrongly in the openstack gates. The result is that all
gates using Ubuntu and ODL fail, for example in this patch:
https://review.openstack.org/#/c/553333/
Using this syntax instead, we force apt to get the correct Ubuntu
version and works, as tested here:
https://review.openstack.org/#/c/559065/
This syntax is valid from the point of view of ansible as it is shown
as an example in their documentation:
docs.ansible.com/ansible/latest/modules/apt_repository_module.html
Change-Id: I8440fa9714137f22e43aa8cf9291a0e82a3a02e1
Signed-off-by: Manuel Buil <mbuil@suse.com>
Daniel Farrell [Mon, 9 Apr 2018 13:59:40 +0000 (13:59 +0000)]
Merge "Change the port to get compatibility with Oxygen"
Manuel Buil [Fri, 6 Apr 2018 15:33:13 +0000 (17:33 +0200)]
Change the port to get compatibility with Oxygen
The jetty.xml file in Oxygen has only one configured port and it is
8181. Nitrogen's jetty had two: 8181 and 8080. We were changing 8080,
however as that port does not exist in Oxygen' jetty.xml, ODL fails.
Change-Id: Icd0396f31749e78f85298beb5706fbe1975d99d5
Signed-off-by: Manuel Buil <mbuil@suse.com>
Daniel Farrell [Wed, 4 Apr 2018 17:48:13 +0000 (17:48 +0000)]
Merge "Provide support for both Oxygen and Nitrogen"
Manuel Buil [Tue, 3 Apr 2018 08:21:15 +0000 (10:21 +0200)]
Build the repo url when odl_version is passed
XCI might pass the odl_version which should generate a repo url
pointing to different snaps repo. So far we were doing this at XCI
side but it makes more sense to do it here as the odl_version is
needed for template processing:
https://git.opendaylight.org/gerrit/#/c/70267/
Change-Id: I2c1cbb86060ce05c87442bcc247fc0679bc9587e
Signed-off-by: Manuel Buil <mbuil@suse.com>
Manuel Buil [Tue, 3 Apr 2018 08:33:51 +0000 (10:33 +0200)]
Provide support for both Oxygen and Nitrogen
SFC requires changes in two configs, however those are different in
Nitrogen and Oxygen:
- In Oxygen, flow-based tunnels are configured through an internal
OVS parameter and not by netvirt-elanmanager-config.xml
- In Oxygen, the default value for the def-tz-enabled parameter in
genius-itm-config is true whereas in Nitrogen is false
Change-Id: Ib201354e684d0d8ffb5a6f17267ab96f89cefb64
Signed-off-by: Manuel Buil <mbuil@suse.com>
Dimitrios Markou [Tue, 3 Apr 2018 11:49:33 +0000 (14:49 +0300)]
Add Oxygen as default deb PPA
Change-Id: I8c7400701ec5f767395bb3e013e332a1520aecf5
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
Manuel Buil [Wed, 21 Mar 2018 11:32:34 +0000 (12:32 +0100)]
Connect ODL to XCI
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>
Daniel Farrell [Mon, 19 Mar 2018 18:13:43 +0000 (18:13 +0000)]
Merge "configure ODL as BGP server"
Periyasamy Palanisamy [Mon, 4 Dec 2017 13:21:42 +0000 (14:21 +0100)]
configure ODL as BGP server
1. Quagga packages are kept as tar.gz package in remote location,
downloaded/extracted/configured as local distribution repository
(apt/yum/zypper) accordingly to install the Quagga and its dependent
packages seamlessly
2. Quagga to be installed on the neutron server nodes, but its configued
as BGP speaker for OpenDaylight in one of the neutron server node if it
is running in cluster environment.
Change-Id: If3907c76a57cb7d58e78ec0201c01b27baefb472
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Manuel Buil [Fri, 2 Mar 2018 14:44:54 +0000 (15:44 +0100)]
Update rpm_path variables to point to Nitrogen SR2
Change-Id: I821d3d4b846d5251d02a0f694add42ca5f98293b
Signed-off-by: Manuel Buil <mbuil@suse.com>
Manuel Buil [Mon, 5 Feb 2018 16:22:31 +0000 (17:22 +0100)]
Update SUSE repo to Nitrogen SR1
Change-Id: I49d716a141d498d846d664ac7ceefb05e4b87bfb
Signed-off-by: Manuel Buil <mbuil@suse.com>
Daniel Farrell [Thu, 18 Jan 2018 22:28:11 +0000 (17:28 -0500)]
Rename example playbooks for clarity/brevity
Change-Id: I49093281a1dcfc0f99923b41b278c9ad8f40fe65
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 17 Jan 2018 10:39:29 +0000 (05:39 -0500)]
Remove examples for old ODL versions, add new
Also add examples that install from new CD repos.
Change-Id: I12b13da6d7eb1c6d8f82fc314724f7b2fbd049d8
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 15 Jan 2018 23:30:35 +0000 (18:30 -0500)]
Pin nodeenv dep to let tox run more than once
Using the latest version makes tox break on second run, unless .tox dir
is removed.
Change-Id: Ia50a147b2c59dd1d344ed98231e35c7ec9c1019a
Fixes: INTPAK-74
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 14 Dec 2017 09:35:19 +0000 (04:35 -0500)]
Change default RPM repo, CentOS CBS to ODL Nexus
Default to installing from fully-automated CD repo on ODL infra.
Change-Id: Ia34fc4721ffd12208db35052408d5d36384f7bf9
Fixes: INTPAK-112
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 29 Nov 2017 00:57:27 +0000 (19:57 -0500)]
Update default RPM repo/path
Fixes: INTPAK-101
Change-Id: If493bc7cf1d77b6de9cf73a70e69163db06911fb
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Manuel Buil [Mon, 30 Oct 2017 17:06:30 +0000 (18:06 +0100)]
Add support for openSUSE
Change-Id: Id05855f473a2754a4e320bee7e7c21f24873fa12
Signed-off-by: Manuel Buil <mbuil@suse.com>
Periyasamy Palanisamy [Tue, 24 Oct 2017 12:37:02 +0000 (14:37 +0200)]
fix concat issue with akka.conf jinja2 template
Change-Id: I0d6de69497072330555b90dddccf3e37544fbdc8
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Periyasamy Palanisamy [Sun, 22 Oct 2017 07:19:48 +0000 (09:19 +0200)]
add missing bracket in akka.conf.j2
Change-Id: If92b8adaf732865245708cb17fc01508fc2dde3f
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Manuel Buil [Tue, 10 Oct 2017 14:55:57 +0000 (16:55 +0200)]
Move to the nitrogen repo for Debian based OS
Change-Id: If984c6d1f60879a26acd57fa9d9f53a5c184d4d3
Signed-off-by: Manuel Buil <mbuil@suse.com>
Dimitrios Markou [Thu, 17 Aug 2017 15:35:34 +0000 (18:35 +0300)]
Add clustering capabilities to Opendaylight role
When the variable 'cluster' is true then the Opendaylight
controller will be deployed in a clustering mode.
Change-Id: I8a1085bae933ad07eab33fc677d199ef613bc040
Signed-off-by: Dimitrios Markou <mardim@intracom-telecom.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
Matt Welch [Tue, 5 Sep 2017 15:14:10 +0000 (11:14 -0400)]
Spawn nodes & connect network with ansible roles
Refactor for better task encapsulation
Add kill_chown.yml to kill stuck chown processes.
Add restart_stacking.yml to restart compute nodes.
Move additional lab-specific variables into inventory.
Update tags to enble more granular task selection.
Modify container networking to use ansible instead of the bash script.
Add ansible tasks to pull container images from the registry.
Add tasks to purge containers matching a supplied string.
Modify order of infra tasks to install packages first, including
bridge-utils.
Add sampe hosts file.
Update site.yml to include a complete cloud setup.
Changed tabs to spaces for SpaceConsistencyBear.
Enable roles to spawn compute and service nodes
Common task added to start stacking on a compute or service node.
New common variable auto_stack added to control stacking after spawn.
Example ansible scripts to setup infra, spawn compute, & spawn service.
Compute and service roles spawn docker containers & connect them to the
network with a bash script.
Handler for apparmor parser moved to handlers/main.yml.
Site.yml now starts a service node by default.
Removed EOL whitespace.
Change-Id: I892afc76fffdcd85e399c5d2596eb4e5020cc318
Signed-off-by: Matt Welch <matt.welch@intel.com>
Daniel Farrell [Tue, 5 Sep 2017 09:03:32 +0000 (09:03 +0000)]
Merge "enable automated setup of physical infrastructure"
Matt Welch [Mon, 14 Aug 2017 20:59:58 +0000 (16:59 -0400)]
enable automated setup of physical infrastructure
Ansible role to setup the physical infrastructure servers for the S3P
Scale testing framework.
These roles are refactored to improve structure for upstream.
Source is based on
https://github.com/intel-odl/socets/commit/
975f5113e0ce16cd6ef1eeb03176230e4f6445c9
Consolidated bridge management and refactored for clarity & reuse.
Clean up infrastructure role
Improve execution idempotency by registering docker_updated_result and
only restarting docker daemon when needed.
Same with parse_apparmor_profile handler.
Added tags to most tasks for better separation of responsibilities.
Moved lab-specific variables tnd inventory to /etc/ansible/hosts.
Addes top-level site.yml to call infrastructure role.
fix docker proxy and 'restart docker' handler
Infra role will now setup proxies and only restart docker daemon on
change.
Refactor to move most variables into common role.
Updated handler
Removed trailing whitespace
Change-Id: I7956b5acba7d339af2e8abbb588c07f0e809de5c
Signed-off-by: Matt Welch <matt.welch@intel.com>
Daniel Farrell [Thu, 31 Aug 2017 10:38:14 +0000 (10:38 +0000)]
Merge "Provide initial config files for sfc"
Manuel Buil [Fri, 25 Aug 2017 11:31:50 +0000 (11:31 +0000)]
Provide initial config files for sfc
SFC requires that genius uses flow based tunnels and vxlan-gpe. We must
configure that intially in the genius config files
Change-Id: I6a1357a68cf589ddbbeb17a7550ac4a9e724e2ff
Signed-off-by: Manuel Buil <mbuil@suse.com>
Manuel Buil [Fri, 25 Aug 2017 14:36:22 +0000 (14:36 +0000)]
Make jetty.xml port substitution version agnostic
Now it will work for Carbon, Nitrogen and Boron releases
Change-Id: I177e85a5eb6e9279550df774535a006309a308ae
Signed-off-by: Manuel Buil <mbuil@suse.com>
Daniel Farrell [Thu, 24 Aug 2017 16:52:00 +0000 (12:52 -0400)]
Allow long links in commit messages
Change-Id: I8f972e476343a2afbc56e0153c3d68d2538c211e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 22 Aug 2017 13:20:42 +0000 (09:20 -0400)]
Update RPM repo cfg file URL
Recent refactoring in Int/Pack changed the path, update accordingly.
Change-Id: I1557b7cd904408de43ee9d89868cc6b1f26ead96
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 10 Aug 2017 13:39:03 +0000 (09:39 -0400)]
Rm import of not-there add_jessie_backports task
This task file was removed in
ee9c04f8bc4 when we moved to Launchpadd
PPA repos vs OpenSUSE OBS, as they don't support Debian.
Change-Id: Ib340e810d394651f50c50b704702e054f18a111b
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 9 Aug 2017 20:11:09 +0000 (16:11 -0400)]
Update supported Fedora versions
Change-Id: I059da46d40b672921b03077fe201dcd62201b37d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 9 Aug 2017 08:02:32 +0000 (04:02 -0400)]
Update requiements.yml with new repo URL
Use new ODL-managed ansible-opendaylight repo in role install file.
Change-Id: Ie291075d1ecba1dbf2064f0cfb2b2708389c88f6
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Sri Sanketh U [Thu, 27 Jul 2017 14:16:29 +0000 (19:46 +0530)]
Extract rpm_repo_file from rpm_repo_url
Change-Id: Id769dcf22274a75d942c54ce4c82a97689aafa06
Signed-off-by: Sri Sanketh U <sanketh.uppalapati@research.iiit.ac.in>
Sri Sanketh U [Tue, 18 Jul 2017 15:28:48 +0000 (20:58 +0530)]
Add WriteGoodLintBear support
Fix readability, inheritance issues
Change-Id: Icd6176cea10b5932ee34699a583283a416670486
Signed-off-by: Sri Sanketh U <sanketh.uppalapati@research.iiit.ac.in>
Daniel Farrell [Thu, 6 Jul 2017 13:54:37 +0000 (09:54 -0400)]
Update ODL RPM version to Carbon
Change-Id: Ia5d5f909d6871f7ac29066fa8745fef8aba96e48
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Juan Vidal [Thu, 8 Jun 2017 12:36:59 +0000 (14:36 +0200)]
Fix typo in README for nb_rest_port
README document states that "odl_rest_port" can be configured to change
the port where ODL listens, but internally "nb_rest_port" is the
variable name used.
Also added an example using it.
Change-Id: Ic5aa035a063adc25e48bd9fc365cdb8ba54bb367
Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
Daniel Farrell [Sun, 28 May 2017 14:38:42 +0000 (10:38 -0400)]
Pin requests to <2.16
The new requests library pulls in a chardet dependency that is in
conflict with coala packages. Pin the version of requests to ensure
we're pulling in a supported version.
Copied change by Thanh.
Change-Id: Ie0e18e5f370c584f11d2dddd39cdf59e5d141bc7
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 25 May 2017 17:31:57 +0000 (13:31 -0400)]
Fix markdown linting errors, enable linting
Change-Id: Iae86844c8bdad68e1b91ab58d19d9d38e5c554b2
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 25 May 2017 16:23:55 +0000 (12:23 -0400)]
Add Coala linting
Some sections are disabled, will enable and fix in follow-up patches.
Change-Id: Ic4e2c75a95abf2b297f7f0ebe3f19d00f100d51b
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 25 May 2017 13:38:02 +0000 (09:38 -0400)]
Add .gitreview file
Change-Id: Icb4860355d725f7f4a956d51bdcb146f1c3c10b0
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Akshita Jha [Wed, 10 May 2017 15:57:53 +0000 (21:27 +0530)]
Add carbon .deb support for ansible-opendaylight
Ansible-opendaylight made use of OpenSUSE Build Service (OBS) to
install .deb packages. This patch removes support for OBS and
instead adds carbon .deb support for Ubuntu 16.04 using Launchpad
PPA, `ppa:odl-team/carbon`.
This patch temporarily removes support for Debian OS.
Change-Id: Ifc72d4ae41cfad2a52e020006de90dd1b9c6e1a9
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Akshita Jha [Tue, 7 Mar 2017 10:50:04 +0000 (16:20 +0530)]
Install opendaylight .deb only for Ubuntu 16.04
Change-Id: Ia6d6cb6e1a19f7da586f93a5b3159fd7589f2bd3
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 2 Mar 2017 15:18:07 +0000 (10:18 -0500)]
Add example playbooks for all testing/rel repos
Change-Id: Ib36543894766dcdfec0d4fdf66ac8429828a26b5
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Akshita Jha [Mon, 27 Feb 2017 10:43:29 +0000 (16:13 +0530)]
Update docs for ansible-opendaylight
Change-Id: If7bffc0de096a27961f0815c357d380ddad75807
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 27 Feb 2017 17:41:25 +0000 (12:41 -0500)]
Fix RPM URL var default value
Change-Id: I3164b2148c5d973e4433d47ca9447fbd62469093
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Akshita Jha [Wed, 22 Feb 2017 10:01:08 +0000 (15:31 +0530)]
Add example playbooks
Change-Id: I26141d214a274c5d59834d110ce9ad0a8ec7dc7e
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Akshita Jha [Wed, 8 Feb 2017 07:48:07 +0000 (13:18 +0530)]
Create `requirements.yml` to install opendaylight role
Change-Id: Ie3e1b36f4682fd525e58b70b9743ad90d9109d00
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
srisankethu [Sun, 8 Jan 2017 18:07:05 +0000 (23:37 +0530)]
Fix ansible-lint errors
Change-Id: I010ce114210a507ca560cfada4c45fefd8a5fc0b
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
srisankethu [Mon, 12 Dec 2016 15:42:40 +0000 (21:12 +0530)]
CONTRIBUTING.md: Fix minor typo
Change-Id: I98fcec7353efcba3b708388a4843e4402962d604
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Akshita Jha [Sat, 3 Dec 2016 00:09:17 +0000 (05:39 +0530)]
Change `deb_path` to use remote URL instead of local path
Change-Id: I4fc94805ba54b6f19d98d01f6b2cfd926845d56c
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Akshita Jha [Fri, 2 Dec 2016 23:23:05 +0000 (04:53 +0530)]
Add .deb support to ansible-opendaylight
This commit checks the OS and then branches for either RPM or Deb installs.
It allows ODL to be installed in a debian based distribution (Debian or Ubuntu)
using a debian repo or .deb local/remote path.
Ansible version: 2.2.0.0
Tested for Debian 8.0 and Ubuntu 16.04
Change-Id: I341c9451352733c1138403cc558d30cfd7611423
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Akshita Jha [Thu, 1 Dec 2016 09:44:27 +0000 (15:14 +0530)]
Remove debug statements
Change-Id: I561cd2372fc2acc92dd8884c626565baab6e6052
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Akshita Jha [Thu, 1 Dec 2016 09:25:37 +0000 (14:55 +0530)]
Add .deb support to ansible-opendaylight
This commit checks the OS and then branches for either RPM or Deb
installs. This patch allows ODL to be installed in a debian distribution
(Debian or Ubuntu) via a deb repo.
Ansible version: 2.2.0.0
Tested for Debian 8.0 and Ubuntu 16.04
Change-Id: I5c238532c039543017af5c290b037df87eb942f2
Signed-off-by: Akshita Jha <zenith158@gmail.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
srisankethu [Wed, 30 Nov 2016 06:44:22 +0000 (12:14 +0530)]
CONTRIBUTING.md: Set IRC webchat link
Fixes https://github.com/dfarrell07/ansible-opendaylight/issues/25
Change-Id: I0aed5bb3175f9a7ba47411c5d928135a429fa104
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
srisankethu [Thu, 24 Nov 2016 09:54:12 +0000 (15:24 +0530)]
CONTRIBUTING.md: Add IRC channel information
Closes https://github.com/dfarrell07/ansible-opendaylight/issues/25
Change-Id: I7da3450e0c88c44cf17bd2a867d09565d747818f
Signed-off-by: srisankethu <sanketh.uppalapati@research.iiit.ac.in>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 21 Sep 2016 20:58:44 +0000 (16:58 -0400)]
Update default ODL version to Boron
Change-Id: Id7a5f47d678dec9b4c7a626a7a3e7de759c9d85f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 21 Sep 2016 18:09:11 +0000 (14:09 -0400)]
Prevent false failures during firewalld checks
Change-Id: I342fa3cfc1649b170b6bfd2452105dfc4d242a40
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 25 Jul 2016 18:48:22 +0000 (14:48 -0400)]
Add alt text for links, update maintainer info
Change-Id: Iff3063c9f8121feb379aed00caadee4c1b563eee
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 13 Jun 2016 21:20:37 +0000 (17:20 -0400)]
Change README markdown file extension
Change-Id: I7a6fe538eefd7277e899e3a1446f36ab01cbc073
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Fri, 20 May 2016 19:11:35 +0000 (15:11 -0400)]
Update default ODL version to Beryllium SR2 4.2
Change-Id: I2ef3a3c5a6798420eb4f935eab652ce2c128e44d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Fri, 20 May 2016 19:07:38 +0000 (15:07 -0400)]
Use task conditionals that work with Fedora 22+
Not sure if it was an Ansible or Ruby update that changed this, but
conditionals of the form `x in [1, 2]` fail with errors related to
template parsing. Changed the conditionals to logically equivalent ones
that use simple equality and conjunction.
Fixes #23
Change-Id: I4f76cc32fb6cd34253cd0b6374a933097ae04985
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Patrick Laurin [Tue, 26 Apr 2016 17:27:26 +0000 (13:27 -0400)]
Change 'yum' module to 'package'
Change-Id: I1a1f12bd2885e0197c544f7fb966b1714da777c1
Signed-off-by: Patrick Laurin <plaurin@inocybe.com>
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 27 Apr 2016 01:37:05 +0000 (21:37 -0400)]
Remove deprecated update_cache package mod param
When moving from the yum module to the package module as a part of #22
and #19, the `update_cache` param became deprecated.
Deployments against Fedora 23 now work.
Change-Id: I92bacdfd7034bb9328bd5e0c1bc2027c617c7d39
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 20:30:49 +0000 (16:30 -0400)]
Add Travis CI badge to README
Change-Id: I0e9ec57046e585f37cae21c4a534adddd1f94c31
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 20:27:49 +0000 (16:27 -0400)]
Python line in Travis config is req'd for tox
Both the Python project type line here and installing tox in req.txt is
required for a working tox in Travis CI.
Change-Id: I54714a30634f30f99257252861b89b2b9b1bbefa
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 20:26:21 +0000 (16:26 -0400)]
Try removing python line from Travis config
Change-Id: I808c5f9b6a13872db1efb7601e99b725e36c5958
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 20:23:46 +0000 (16:23 -0400)]
Add tox to req.txt so it's installed in Travis CI
Change-Id: I63ce7e6c845a20d6b8bdad0279f89bb69e28bf98
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 20:21:29 +0000 (16:21 -0400)]
Update Travis cfg to install Tox on build box
Change-Id: Ic5d20051821ab6ab61707a7eef0aaf15a722218f
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 20:17:31 +0000 (16:17 -0400)]
Add req.txt for installing ansible-lint
Change-Id: I9d1e760ccf3f2a3bde23d2aac0fda0dca0b3c0c7
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 20:15:10 +0000 (16:15 -0400)]
Add tox dir to gitignore
Change-Id: I5a0e5427c5914f043dce212800910cff161367f1
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 20:14:27 +0000 (16:14 -0400)]
Add Travis cfg for running ansible-lint in CI
Change-Id: Ia430773a5e8e722fc5d8db77f1eeb7ecabc3acb9
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 20:13:52 +0000 (16:13 -0400)]
Add tox cfg for running ansible-lint against role
Change-Id: If4958e35976ba455b292a8384733855472a6788c
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 20:12:45 +0000 (16:12 -0400)]
Add example playbook that uses this role
Change-Id: Ie600b3680c265ed158779cdeca000ae21f5208db
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 5 Apr 2016 19:46:31 +0000 (15:46 -0400)]
Use recommended file-absent method vs rm
The ansible-lint program complained about using rm to directly remove a
file, vs ensuring it's absent via the Ansible file type.
Change-Id: I3486b974b5ffd7f853aa252c7b89b92c60055665
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 29 Mar 2016 15:46:36 +0000 (11:46 -0400)]
Don't use template for Karaf feature config
Templates don't work well now that ansible-opendaylight supports
installing multiple versions of ODL (via rpm_repo*, for example).
The content of the tempalted file is completly replaced, when only the
exact line that needs to be changed should be managed and the rest of
the file should use the version's default content.
Changing the version of ODL installed via params also requires changing
the default Karaf feature repos to match the version. This is confusing
and unnecessary - no one uses this knob that I know of.
Change-Id: I4cbe53b0b1f91dd01b24d2672581e1f99f2bfccb
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Tue, 29 Mar 2016 13:46:26 +0000 (09:46 -0400)]
Update default ODL install to Be SR1 4.1.0
Change-Id: Iaa8f43568ea393db14ab5586d9ae83e7c3a8d940
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 28 Mar 2016 21:39:56 +0000 (17:39 -0400)]
Refactor logic for running in containers
New CentOS containers (7.2.1511 and not 7.1.1503) ship full systemd,
instead of using fakesystemd or not including it. It doesn't work
without modifying the Dockerfile and/or passing special params to the
`docker run` command, and it's generally not recommended for use in
containers, so we don't want to use it when provisioning a container.
The old checks were seeing systemd and (rightly so, it's installed) and
attempting to use it in containers. The new one directly checks if
running in a container instead of inferring from presence or absence of
systemd.
Change-Id: I9ee7c86c947396a3452a1c0b54d576bb9d512b47
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 22 Feb 2016 20:54:03 +0000 (15:54 -0500)]
Update ODL to Beryllium
ODL Li SR3 to Beryllium 4.0.0
Change-Id: I19efa52cb3cad0a34a3bd59eb74fe5e1a247c9ae
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Wed, 27 Jan 2016 20:01:30 +0000 (15:01 -0500)]
Add var to select .repo used for installing ODL
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>
Daniel Farrell [Wed, 27 Jan 2016 18:51:17 +0000 (13:51 -0500)]
Update default rpm_path var to Li SR3
Closes #21
Change-Id: Ibf9f89485123ccb109d270303cddc5ffaeb0930d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Fri, 15 Jan 2016 20:46:54 +0000 (15:46 -0500)]
Update ODL Lithium Karaf feature repos for SR3
The 3-candidate RPM repo now installs ODL SR3, so the templated Karaf
feature repos need to be updated to find Li SR3 artifacts.
Change-Id: I610c075e5479061939c79bca1e6772c4c0304e1a
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Mon, 11 Jan 2016 19:30:00 +0000 (14:30 -0500)]
Update ODL Lithium Karaf feature repos for SR2
The 3-candidate RPM repo now installs ODL SR2, so the templated Karaf
feature repos need to be updated to find Li SR2 artifacts.
Change-Id: I7354651d6048080491f0cc0b7760bd7f6f093677
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 3 Sep 2015 20:01:15 +0000 (16:01 -0400)]
Minor inline docs updates for default vars
Change-Id: If587261a0f8f05ecfca4d6d7803209e43533b404
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Sat, 15 Aug 2015 00:15:27 +0000 (20:15 -0400)]
Extract ODL install to a single task for clarity
Change-Id: I6f5055c954ab5d67b77d830a07f50ea6cf944d30
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Fri, 14 Aug 2015 17:51:26 +0000 (13:51 -0400)]
Officially support Fedora 21
Change-Id: I5c23d378c21f9546bfa87b84d5ed8c0d331cf484
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Fri, 14 Aug 2015 15:35:28 +0000 (11:35 -0400)]
Remove old, unused task
Change-Id: I81dc8ffe235f5a9a23c8853a13f1bc982c22c25c
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 13 Aug 2015 20:35:35 +0000 (16:35 -0400)]
Confirm systemd intalled b4 using it in handlers
Change-Id: I6b8365b81e22aeb2b0bdd0172dee2b0a0348a15d
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Daniel Farrell [Thu, 13 Aug 2015 20:28:07 +0000 (16:28 -0400)]
Bugfix in check if systemd is installed
When systemd isn't installed, the `rpm -q` check exists with
a non-zero exit status (1), which is expected but interpreted
by Ansible as a failure. Tell Ansible that RC 0 and 1 are okay.
Change-Id: I75d5b7512a01001c46f7a9251f21bf772b7a9d4e
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>