integration/packaging/ansible-opendaylight.git
5 years agoAdd ODL log configuration 28/73628/14
Taseer Ahmed [Sun, 1 Jul 2018 18:41:37 +0000 (23:41 +0500)]
Add ODL log configuration

JIRA: INTPAK-40

Parallels the Puppet logic. Initially log levels is an empty
dictionary of the 'logger name' and 'log level'. The user can
set the logger name and log level by their choice.
Ansible implements a similar approach. By default, log_levels
is empty, but can be over written in the vars.

This patch also sets the logging mechanism, either file or console.
Default mechanism is set to console. In case of file, the log
rotation strategy is also configured.

Change-Id: Ifa39927bc77b47490d3e1b56f23aa359316bc3bf
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoMerge "Create task for adding ODL user"
Daniel Farrell [Wed, 18 Jul 2018 21:11:51 +0000 (21:11 +0000)]
Merge "Create task for adding ODL user"

5 years agoMerge "Add tests for odl user/password feature"
Daniel Farrell [Wed, 18 Jul 2018 21:11:40 +0000 (21:11 +0000)]
Merge "Add tests for odl user/password feature"

5 years agoMerge "Allow setting ODL NB REST password"
Daniel Farrell [Wed, 18 Jul 2018 21:11:36 +0000 (21:11 +0000)]
Merge "Allow setting ODL NB REST password"

5 years agoCreate task for adding ODL user 11/73411/15
Taseer Ahmed [Mon, 25 Jun 2018 16:08:44 +0000 (21:08 +0500)]
Create task for adding ODL user

Puppet creates the user before starting the ODL service. Same
workflow is implemented here.

JIRA: INTPAK-177
Change-Id: I269e15dc3a69d6018be050412108090fd83021c7
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
5 years agoAdd tests for odl user/password feature 17/73517/18
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>
5 years agoAllow setting ODL NB REST password 91/73391/17
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>
5 years agoAdd ansible-odl docs in its own repository. 39/73639/10
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>
5 years agoAdd tests for docs 28/73728/3
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>
5 years agoAdd Coala linting tests for Ansible module 12/73412/8
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>
5 years agoUpdate default rpm_path var 8.1->8.2 76/73276/1
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>
5 years agoUpdate default ODL versions, add examples 77/72977/1
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>
6 years agoModify rpm_repo_url condition 02/71302/2
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>
6 years agoReplace include by include_tasks 75/70775/1
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>
6 years agoFix problem in openstack gates 20/70720/3
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>
6 years agoMerge "Change the port to get compatibility with Oxygen"
Daniel Farrell [Mon, 9 Apr 2018 13:59:40 +0000 (13:59 +0000)]
Merge "Change the port to get compatibility with Oxygen"

6 years agoChange the port to get compatibility with Oxygen 37/70437/2
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>
6 years agoMerge "Provide support for both Oxygen and Nitrogen"
Daniel Farrell [Wed, 4 Apr 2018 17:48:13 +0000 (17:48 +0000)]
Merge "Provide support for both Oxygen and Nitrogen"

6 years agoBuild the repo url when odl_version is passed 66/70266/6
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>
6 years agoProvide support for both Oxygen and Nitrogen 67/70267/2
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>
6 years agoAdd Oxygen as default deb PPA 80/70280/1
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>
6 years agoConnect ODL to XCI 52/69752/4
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>
6 years agoMerge "configure ODL as BGP server"
Daniel Farrell [Mon, 19 Mar 2018 18:13:43 +0000 (18:13 +0000)]
Merge "configure ODL as BGP server"

6 years agoconfigure ODL as BGP server 95/66195/10
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>
6 years agoUpdate rpm_path variables to point to Nitrogen SR2 05/69005/2
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>
6 years agoUpdate SUSE repo to Nitrogen SR1 25/67925/1
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>
6 years agoRename example playbooks for clarity/brevity 11/67311/1
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>
6 years agoRemove examples for old ODL versions, add new 30/67230/1
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>
6 years agoPin nodeenv dep to let tox run more than once 81/67181/1
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>
6 years agoChange default RPM repo, CentOS CBS to ODL Nexus 57/66457/1
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>
6 years agoUpdate default RPM repo/path 42/66042/2
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>
6 years agoAdd support for openSUSE 88/64888/5
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>
6 years agofix concat issue with akka.conf jinja2 template 61/64661/1
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>
6 years agoadd missing bracket in akka.conf.j2 88/64588/1
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>
6 years agoMove to the nitrogen repo for Debian based OS 18/64118/1
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>
6 years agoAdd clustering capabilities to Opendaylight role 45/61945/10
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>
6 years agoSpawn nodes & connect network with ansible roles 17/62717/4
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>
6 years agoMerge "enable automated setup of physical infrastructure"
Daniel Farrell [Tue, 5 Sep 2017 09:03:32 +0000 (09:03 +0000)]
Merge "enable automated setup of physical infrastructure"

6 years agoenable automated setup of physical infrastructure 12/62012/3
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>
6 years agoMerge "Provide initial config files for sfc"
Daniel Farrell [Thu, 31 Aug 2017 10:38:14 +0000 (10:38 +0000)]
Merge "Provide initial config files for sfc"

6 years agoProvide initial config files for sfc 09/62309/3
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>
6 years agoMake jetty.xml port substitution version agnostic 23/62323/2
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>
6 years agoAllow long links in commit messages 86/62286/1
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>
6 years agoUpdate RPM repo cfg file URL 58/62158/1
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>
6 years agoRm import of not-there add_jessie_backports task 97/61497/1
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>
6 years agoUpdate supported Fedora versions 58/61458/1
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>
6 years agoUpdate requiements.yml with new repo URL 03/61403/1
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>
6 years agoExtract rpm_repo_file from rpm_repo_url 15/60815/2
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>
6 years agoAdd WriteGoodLintBear support 41/60541/2
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>
6 years agoUpdate ODL RPM version to Carbon 26/60026/1
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>
6 years agoFix typo in README for nb_rest_port 08/58508/1
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>
7 years agoPin requests to <2.16 38/57938/1
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>
7 years agoFix markdown linting errors, enable linting 25/57825/1
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>
7 years agoAdd Coala linting 23/57823/1
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>
7 years agoAdd .gitreview file 15/57815/1
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>
7 years agoAdd carbon .deb support for ansible-opendaylight 61/57561/1
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>
7 years agoInstall opendaylight .deb only for Ubuntu 16.04 60/57560/1
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>
7 years agoAdd example playbooks for all testing/rel repos 59/57559/1
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>
7 years agoUpdate docs for ansible-opendaylight 58/57558/1
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>
7 years agoFix RPM URL var default value 57/57557/1
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>
7 years agoAdd example playbooks 56/57556/1
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>
7 years agoCreate `requirements.yml` to install opendaylight role 55/57555/1
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>
7 years agoFix ansible-lint errors 54/57554/1
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>
7 years agoCONTRIBUTING.md: Fix minor typo 53/57553/1
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>
7 years agoChange `deb_path` to use remote URL instead of local path 52/57552/1
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>
7 years agoAdd .deb support to ansible-opendaylight 51/57551/1
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>
7 years agoRemove debug statements 50/57550/1
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>
7 years agoAdd .deb support to ansible-opendaylight 49/57549/1
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>
7 years agoCONTRIBUTING.md: Set IRC webchat link 48/57548/1
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>
7 years agoCONTRIBUTING.md: Add IRC channel information 47/57547/1
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>
7 years agoUpdate default ODL version to Boron 46/57546/1
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>
7 years agoPrevent false failures during firewalld checks 45/57545/1
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>
7 years agoAdd alt text for links, update maintainer info 44/57544/1
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>
7 years agoChange README markdown file extension 43/57543/1
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>
7 years agoUpdate default ODL version to Beryllium SR2 4.2 42/57542/1
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>
7 years agoUse task conditionals that work with Fedora 22+ 41/57541/1
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>
7 years agoChange 'yum' module to 'package' 40/57540/1
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>
7 years agoRemove deprecated update_cache package mod param 39/57539/1
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>
7 years agoAdd Travis CI badge to README 38/57538/1
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>
7 years agoPython line in Travis config is req'd for tox 37/57537/1
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>
7 years agoTry removing python line from Travis config 36/57536/1
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>
7 years agoAdd tox to req.txt so it's installed in Travis CI 35/57535/1
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>
7 years agoUpdate Travis cfg to install Tox on build box 34/57534/1
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>
7 years agoAdd req.txt for installing ansible-lint 33/57533/1
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>
7 years agoAdd tox dir to gitignore 32/57532/1
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>
7 years agoAdd Travis cfg for running ansible-lint in CI 31/57531/1
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>
7 years agoAdd tox cfg for running ansible-lint against role 30/57530/1
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>
7 years agoAdd example playbook that uses this role 29/57529/1
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>
7 years agoUse recommended file-absent method vs rm 28/57528/1
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>
7 years agoDon't use template for Karaf feature config 27/57527/1
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>
7 years agoUpdate default ODL install to Be SR1 4.1.0 26/57526/1
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>
7 years agoRefactor logic for running in containers 25/57525/1
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>
7 years agoUpdate ODL to Beryllium 24/57524/1
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>
7 years agoAdd var to select .repo used for installing ODL 23/57523/1
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>
7 years agoUpdate default rpm_path var to Li SR3 22/57522/1
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>
7 years agoUpdate ODL Lithium Karaf feature repos for SR3 21/57521/1
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>
7 years agoUpdate ODL Lithium Karaf feature repos for SR2 20/57520/1
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>
7 years agoMinor inline docs updates for default vars 19/57519/1
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>
7 years agoExtract ODL install to a single task for clarity 18/57518/1
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>
7 years agoOfficially support Fedora 21 17/57517/1
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>