aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorMark Goddard <mark@stackhpc.com>2019-03-18 11:49:23 +0000
committerMark Goddard <mark@stackhpc.com>2019-03-18 15:29:11 +0000
commit4058c8e2983b10fc1daceae2fb260065428b2786 (patch)
tree7b30ccdd306f66f35c32f2aa85c6d5fd76e5fb77 /docker
parentdebe4179824005afeaa0d89ab68a9a8acd42103a (diff)
downloadkolla-4058c8e2983b10fc1daceae2fb260065428b2786.tar.gz
kolla-4058c8e2983b10fc1daceae2fb260065428b2786.zip
Pin sensu mailer and slack plugins
The 4.0.0 release of the mailer plugin requires Ruby 2.3+, which is not avaiable in CentOS/RHEL7. Pin it to the 3.0.0 release, which is supported. While we're here, also pin the slack plugin. Both use the pessimistic version operator, as used in the sensu-client image. Change-Id: Idac8cb696c81c7413a3da79b4868f556ef36fc8d Closes-Bug: #1820594
Diffstat (limited to 'docker')
-rw-r--r--docker/sensu/sensu-server/Dockerfile.j27
1 files changed, 5 insertions, 2 deletions
diff --git a/docker/sensu/sensu-server/Dockerfile.j2 b/docker/sensu/sensu-server/Dockerfile.j2
index 53950c91e..de7e9e7d0 100644
--- a/docker/sensu/sensu-server/Dockerfile.j2
+++ b/docker/sensu/sensu-server/Dockerfile.j2
@@ -23,9 +23,12 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{% block sensu_server_plugins_install %}
+# Sensu plugins are all using semantic versioning.
+# Let's cap them to the known major version that works with the ruby shipped on
+# rhel/centos/oraclelinux (currently 2.0)
{% set sensu_plugins = [
- 'mailer',
- 'slack'
+ 'mailer:"~>3"',
+ 'slack:"~>3"'
] %}
RUN sensu-install --plugins {{ sensu_plugins | customizable('plugins') | join (',') }}