Cleanup opendaylight-template-overrides

The neutron OpenDaylight drivers can now be customized with the
neutron-server-opendaylight image, there is no need to add them to the
override file.

Update OpenDaylight overrides file documentation to make it clear this
is only available for source builds.

Change-Id: I12503810f80ca18f42e5f2ebeac835bccced02fd
This commit is contained in:
Martin André 2017-05-19 17:24:18 +02:00
parent 8110b55d60
commit 847f4822c5
2 changed files with 8 additions and 20 deletions

View File

@ -1,10 +1,5 @@
{% extends parent_template %}
{% block neutron_server_footer %}
ADD plugins-archive /
RUN pip --no-cache-dir install /plugins/*
{% endblock %}
{% block opendaylight_install %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set opendaylight_packages = ['java-1.8.0-openjdk'] %}

View File

@ -2,33 +2,26 @@
OpenDaylight Build
==================
To build OpenDaylight, use of a template override
`opendaylight-template-overrides.j2` is needed.
The template override enables OpenDaylight use
with OpenStack by installing required networking-odl
plugin in neutron-server container.
If you wish to install a different version of OpenDaylight
then distro packages, use a source build (in most cases this is
a prebuilt binary package).
The `opendaylight-template-overrides.j2` template override shows how to build
an OpenDaylight container image with a different version than the one packaged
with the distro.
Building OpenDaylight Containers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- For source builds append the following to kolla-build.conf,
selecting the version of OpenDaylight to use for your source build.
kolla-build.conf
________________
Point to the desired version of OpenDaylight in `kolla-build.conf`:
.. code-block:: console
[opendaylight]
type = url
location = https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.6.0-Carbon/distribution-karaf-0.6.0-Carbon.tar.gz
Build the container (source or binary) by executing the following command:
Build the container by executing the following command:
::
kolla-build --template-override contrib/template-override/opendaylight-template-overrides.j2 opendaylight
kolla-build --type source --template-override contrib/template-override/opendaylight-template-overrides.j2 opendaylight