2015-09-17 09:35:33 -07:00
|
|
|
FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }}
|
2017-05-02 16:23:09 +09:00
|
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
2015-08-13 04:24:42 +02:00
|
|
|
|
2016-09-07 18:15:01 +01:00
|
|
|
{% block neutron_openvswitch_agent_header %}{% endblock %}
|
|
|
|
|
2016-08-03 20:52:37 +02:00
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
|
2015-08-13 04:24:42 +02:00
|
|
|
{% if install_type == 'binary' %}
|
2016-11-03 10:37:21 +01:00
|
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
2015-08-13 04:24:42 +02:00
|
|
|
|
2016-08-03 20:52:37 +02:00
|
|
|
{% set neutron_openvswitch_agent_packages = [
|
|
|
|
'openstack-neutron-openvswitch',
|
|
|
|
'openvswitch'
|
|
|
|
] %}
|
2015-08-13 04:24:42 +02:00
|
|
|
|
2017-02-12 18:36:51 +01:00
|
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
2015-12-30 13:13:25 +01:00
|
|
|
|
2016-08-03 20:52:37 +02:00
|
|
|
{% set neutron_openvswitch_agent_packages = [
|
|
|
|
'neutron-plugin-openvswitch-agent',
|
|
|
|
'openvswitch-switch'
|
|
|
|
] %}
|
2015-12-30 13:13:25 +01:00
|
|
|
|
2015-08-22 13:40:20 +00:00
|
|
|
{% endif %}
|
2015-08-13 04:24:42 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2016-08-03 20:52:37 +02:00
|
|
|
{{ macros.install_packages(neutron_openvswitch_agent_packages | customizable("packages")) }}
|
|
|
|
|
|
|
|
{% block neutron_openvswitch_agent_footer %}{% endblock %}
|
|
|
|
{% block footer %}{% endblock %}
|
2016-03-01 13:49:01 -05:00
|
|
|
|
|
|
|
USER neutron
|