summaryrefslogtreecommitdiff
path: root/docker/nova
diff options
context:
space:
mode:
authorDan Prince <dprince@redhat.com>2017-01-09 16:58:07 -0500
committerDan Prince <dprince@redhat.com>2017-01-12 12:07:24 -0500
commit10c26d90e9ebe4a47d9558dfd64cc6907a46dbf2 (patch)
treec8cc651f918c154e106b0b589514ccf74db6577a /docker/nova
parentbff91aecd996a7aa3def31f6365c033ef3141a1d (diff)
downloadkolla-10c26d90e9ebe4a47d9558dfd64cc6907a46dbf2.tar.gz
kolla-10c26d90e9ebe4a47d9558dfd64cc6907a46dbf2.zip
Add Apache packages to nova-api container
Some projects that use Kolla docker containers (TripleO) run nova-api 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. Partial-Blueprint: apache-packages-for-apis Change-Id: Id22da4626c659d8c9f457b71d9423e5fd9e8c25a
Diffstat (limited to 'docker/nova')
-rw-r--r--docker/nova/nova-api/Dockerfile.j227
1 files changed, 25 insertions, 2 deletions
diff --git a/docker/nova/nova-api/Dockerfile.j2 b/docker/nova/nova-api/Dockerfile.j2
index 13a3dd92c..7c8436fd0 100644
--- a/docker/nova/nova-api/Dockerfile.j2
+++ b/docker/nova/nova-api/Dockerfile.j2
@@ -9,14 +9,37 @@ MAINTAINER {{ maintainer }}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
{% set nova_api_packages = [
- 'openstack-nova-api'
+ 'openstack-nova-api',
+ 'httpd',
+ 'mod_wsgi'
] %}
{% elif base_distro in ['ubuntu'] %}
{% set nova_api_packages = [
'nova-api',
- 'python-memcache'
+ 'python-memcache',
+ 'apache2',
+ 'libapache2-mod-wsgi'
+ ] %}
+
+ {% endif %}
+{{ macros.install_packages(nova_api_packages | customizable("packages")) }}
+
+{% elif install_type == 'source' %}
+
+ {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
+
+ {% set nova_api_packages = [
+ 'httpd',
+ 'mod_wsgi'
+ ] %}
+
+ {% elif base_distro in ['ubuntu'] %}
+
+ {% set nova_api_packages = [
+ 'apache2',
+ 'libapache2-mod-wsgi'
] %}
{% endif %}