aboutsummaryrefslogtreecommitdiff
path: root/docker/macros.j2
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2017-11-29 10:15:32 +0000
committerGerrit Code Review <review@openstack.org>2017-11-29 10:15:32 +0000
commit3347a4233b724207d87fe9f4cf0f21433cc0c640 (patch)
treed628fa5b9078bd71bfa3c8b5a0b475de6fb849ba /docker/macros.j2
parenta638447b745258374dd9520e998a434d489a5204 (diff)
parentdd4fe190d0b7a92c72565091c99baba5b4ec6f4f (diff)
downloadkolla-3347a4233b724207d87fe9f4cf0f21433cc0c640.tar.gz
kolla-3347a4233b724207d87fe9f4cf0f21433cc0c640.zip
Merge "Clean fluentd_plugins_install block"
Diffstat (limited to 'docker/macros.j2')
-rw-r--r--docker/macros.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2
index 5294ddacf..dfb85447b 100644
--- a/docker/macros.j2
+++ b/docker/macros.j2
@@ -80,3 +80,14 @@ RUN apt-get update \
RUN curl -o /usr/bin/kubectl http://storage.googleapis.com/kubernetes-release/release/v1.5.4/bin/linux/${KUBE_ARCH}/kubectl \
&& chmod 755 /usr/bin/kubectl
{% endmacro %}
+
+
+{% macro install_fluent_plugins(plugins) -%}
+{% if plugins is defined and plugins|length > 0 -%}
+ {% if base_distro in ['centos', 'oraclelinux', 'rhel'] -%}
+ RUN ulimit -n 65536 && gem install --minimal-deps {{ plugins | join(' ') }}
+ {%- elif base_distro in ['debian', 'ubuntu'] -%}
+ RUN ulimit -n 65536 && td-agent-gem install {{ plugins | join(' ') }}
+ {%- endif %}
+{%- endif %}
+{%- endmacro %}