Merge "Add neutron-vpnaas-agent container"
This commit is contained in:
commit
56da49b561
@ -18,14 +18,12 @@ MAINTAINER {{ maintainer }}
|
||||
|
||||
{% elif base_distro in ['ubuntu'] %}
|
||||
|
||||
# TODO(Jeffrey4l): UCA latest Newton release lack of neutron-lbaas-common
|
||||
# package, just remove neutron-lbaas-agent in neutron_base_packages. Once they
|
||||
# fix it, this should be reverted.
|
||||
{% set neutron_base_packages = [
|
||||
'iproute2',
|
||||
'neutron-plugin-ml2',
|
||||
'neutron-server',
|
||||
'openvswitch-switch',
|
||||
'neutron-lbaas-common',
|
||||
'python-openvswitch'
|
||||
] %}
|
||||
|
||||
|
39
docker/neutron/neutron-vpnaas-agent/Dockerfile.j2
Normal file
39
docker/neutron/neutron-vpnaas-agent/Dockerfile.j2
Normal file
@ -0,0 +1,39 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% block neutorn_vpnass_agent_header %}{% endblock %}
|
||||
|
||||
{% import "macros.j2" as macros with context %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||
{% set neutron_vpnaas_agent_packages = [
|
||||
'openswan',
|
||||
'openstack-neutron-vpn-agent'
|
||||
] %}
|
||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||
{% set neutron_vpnaas_agent_packages = [
|
||||
'strongswan',
|
||||
'neutron-vpn-agent'
|
||||
] %}
|
||||
{% endif %}
|
||||
|
||||
{{ macros.install_packages(neutron_vpnaas_agent_packages | customizable("packages")) }}
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
ADD neutron-vpnaas-agent-archive /neutron-vpnaas-agent-source
|
||||
RUN ln -s neutron-vpnaas-agent-source/* neutron_vpnaas \
|
||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /neutron_vpnaas \
|
||||
&& cp /neutron_vpnaas/etc/neutron/rootwrap.d/* /etc/neutron/rootwrap.d
|
||||
|
||||
{% endif %}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_neutron_extend_start
|
||||
RUN chmod 755 /usr/local/bin/kolla_neutron_extend_start
|
||||
|
||||
{% block neutron_vpnaas_agent_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
{{ include_footer }}
|
||||
|
||||
USER neutron
|
8
docker/neutron/neutron-vpnaas-agent/extend_start.sh
Normal file
8
docker/neutron/neutron-vpnaas-agent/extend_start.sh
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||
neutron-db-manage --subproject neutron-vpnaas --config-file /etc/neutron/neutron.conf upgrade head
|
||||
exit 0
|
||||
fi
|
@ -245,6 +245,10 @@ SOURCES = {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/networking-sfc/'
|
||||
'networking-sfc-master.tar.gz')},
|
||||
'neutron-vpnaas-agent': {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/neutron-vpnaas/'
|
||||
'neutron-vpnaas-master.tar.gz')},
|
||||
'nova-base': {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/nova/'
|
||||
|
Loading…
Reference in New Issue
Block a user