kolla/contrib/template-override/opendaylight-template-overrides.j2
Tim Rozet c3b0e78212 Updates opendaylight repo for Carbon release
Carbon was released for ODL so we should update to that version for the
repo.

Change-Id: I9c32b41ef865a09587f3ebfe8b8a896031fbd285
Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-06-02 16:13:15 -04:00

23 lines
759 B
Django/Jinja

{% extends parent_template %}
{% block neutron_server_footer %}
ADD plugins-archive /
RUN pip --no-cache-dir install /plugins/*
{% endblock %}
{% block opendaylight_source_install %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set opendaylight_packages = ['java-1.8.0-openjdk'] %}
{% elif base_distro in ['ubuntu', 'debian'] %}
{% set opendaylight_packages = ['openjdk-8-jre'] %}
{% endif %}
{{ macros.install_packages(opendaylight_packages | customizable("packages")) }}
{% if opendaylight_distro is not defined %}
{% set opendaylight_distro = 'distribution-karaf-0.6.0-Carbon' %}
{% endif %}
ADD opendaylight-archive /opendaylight
RUN ln -s /opendaylight/{{ opendaylight_distro }} /opt/opendaylight
{% endblock %}