Add Apache packages to heat containers
Some projects that use Kolla docker containers (TripleO) run heat under httpd. This patch adds the httpd package so that it exists in the container and can optionally by used via Docker entrypoints. As many of these projects do not require the use of Apache (it is opt-in) at this point not all deployment frameworks support the use of it so the existing configuration defaults have been left as-is for now. Change-Id: I4d648c4ce4f5f6ba311bfbbf9c78e06104163c61 Partially-Implements: blueprint apache-packages-for-apis
This commit is contained in:
parent
ae40ec099f
commit
76ab2b84f4
@ -10,14 +10,40 @@ MAINTAINER {{ maintainer }}
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
||||
{% set heat_base_packages = ['openstack-heat-common'] %}
|
||||
{% set heat_base_packages = [
|
||||
'openstack-heat-common',
|
||||
'httpd',
|
||||
'mod_wsgi'
|
||||
] %}
|
||||
{% elif base_distro in ['ubuntu'] %}
|
||||
{% set heat_base_packages = ['heat-common'] %}
|
||||
{% set heat_base_packages = [
|
||||
'heat-common',
|
||||
'apache2',
|
||||
'libapache2-mod-wsgi',
|
||||
] %}
|
||||
{% endif %}
|
||||
{{ macros.install_packages(heat_base_packages | customizable("packages")) }}
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
||||
|
||||
{% set heat_base_packages = [
|
||||
'httpd',
|
||||
'mod_wsgi'
|
||||
] %}
|
||||
|
||||
{% elif base_distro in ['ubuntu'] %}
|
||||
|
||||
{% set heat_base_packages = [
|
||||
'apache2',
|
||||
'libapache2-mod-wsgi'
|
||||
] %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{{ macros.install_packages(heat_base_packages | customizable("packages")) }}
|
||||
|
||||
ADD heat-base-archive /heat-base-source
|
||||
|
||||
{% set heat_base_pip_packages = [
|
||||
|
Loading…
Reference in New Issue
Block a user