Allow running mistral-api service via wsgi in container

A review to add the necessary packages to run mistral-api via wsgi was
proposed to kolla in I07ffd0b398e20065fff27c30d0842b94090ca0ad but this
is unlikely we'll be able to backport to stable/pike due to the nature
of the change.

So make the necessary change in our override file so we have more
freedom to backport.

Change-Id: Id2bfb6ba761821616301f996dd68fea8f07ae5f3
Related-Bug: #1724607
This commit is contained in:
Martin André 2017-10-19 11:06:59 +02:00
parent 89804e9b30
commit 1a4da389bb

View File

@ -38,6 +38,14 @@ gpgcheck=0' >> /etc/yum.repos.d/opendaylight.repo
# the undercloud baremetal workflows.
{% set mistral_executor_packages_append = ['openstack-nova-common'] %}
# NOTE(mandre) remove once https://review.openstack.org/#/c/513089/ merges
{% set mistral_api_packages_append = ['httpd','mod_ssl', 'mod_wsgi'] %}
{% block mistral_api_footer %}
RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \
&& sed -i -r 's,^(Listen 443),#\1,' /etc/httpd/conf.d/ssl.conf \
&& echo "if [[ \$USER == 'root' ]]; then rm -rf /var/run/httpd/* /run/httpd/* /tmp/httpd*; fi" >> /usr/local/bin/kolla_mistral_extend_start
{% endblock %}
# FIXME (kolla review to add ceilometer to swift proxy image)
# NOTE (jaosorior): swift proxy with TLS everywhere needs these packages.
{% set swift_proxy_server_packages_append = ['openstack-ceilometer-common', 'httpd', 'mod_ssl'] %}