kolla/contrib/template-override/opendaylight-template-overrides.j2
Martin André 847f4822c5 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
2017-08-17 19:10:33 +02:00

15 lines
484 B
Django/Jinja

{% extends parent_template %}
{% block opendaylight_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")) }}
ADD opendaylight-archive /opendaylight
RUN ln -s /opendaylight/* /opt/opendaylight
{% endblock %}