aboutsummaryrefslogtreecommitdiff
path: root/docker_templates/haproxy
diff options
context:
space:
mode:
authorSam Yaple <sam@yaple.net>2015-08-22 14:20:40 +0000
committerSam Yaple <sam@yaple.net>2015-08-24 18:24:41 +0000
commit53b2977da3ea0e291da6297ca4ff6bff356a4fff (patch)
tree4a59bc0e26b7df109b87d9f17502cedf13acec04 /docker_templates/haproxy
parentf70e8d4598c58f8b2904542f7e0d87c693f70761 (diff)
downloadkolla-53b2977da3ea0e291da6297ca4ff6bff356a4fff.tar.gz
kolla-53b2977da3ea0e291da6297ca4ff6bff356a4fff.zip
Ubuntu - Haproxy
Change-Id: I847eecedd7e6526983d604d2bd95f613e58fffb2 Paritally-Implements: blueprint install-from-ubuntu
Diffstat (limited to 'docker_templates/haproxy')
-rwxr-xr-xdocker_templates/haproxy/Dockerfile.j211
1 files changed, 8 insertions, 3 deletions
diff --git a/docker_templates/haproxy/Dockerfile.j2 b/docker_templates/haproxy/Dockerfile.j2
index ba6c76b21..1a40d5d93 100755
--- a/docker_templates/haproxy/Dockerfile.j2
+++ b/docker_templates/haproxy/Dockerfile.j2
@@ -7,10 +7,15 @@ RUN yum -y install \
haproxy \
&& yum clean all
-{% elif base_distro in ['ubuntu', 'debian'] %}
+{% elif base_distro == 'ubuntu' %}
-RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
- && /bin/false
+RUN apt-get install -y --no-install-recommends -t trusty-backports haproxy \
+ && apt-get clean
+
+{% elif base_distro == 'debian' %}
+
+RUN apt-get install -y --no-install-recommends haproxy \
+ && apt-get clean
{% endif %}