sensu-client: install older whois gem

Whois 5.0.0 requires Ruby 2.4 while CentOS has only 2.0 version.

Change-Id: I6ec9d58bf54db1ac69b879785f38fb492bc2dfc2
(cherry picked from commit 41408527ae)
(cherry picked from commit 091d9a96ef)
This commit is contained in:
Marcin Juszkiewicz 2019-09-19 13:50:41 +02:00 committed by Mark Goddard
parent ea34f0e19f
commit 29d12aebd6
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ RUN echo '{{ image_name }} not yet available for {{ base_distro }}' \
# TODO(mandre) Use packaged sensu plugins from centos-opstools for binary distro
# http://cbs.centos.org/koji/search?match=glob&type=package&terms=*sensu*
RUN sensu-install --plugins {{ sensu_plugins | customizable('plugins') | join (',') }}
# NOTE(hrw): whois 5.0.0 requires Ruby 2.4+ while CentOS has 2.0
RUN {%if base_distro in ['centos', 'rhel', 'oraclelinux'] %} gem install whois:"<5" && {% endif %} sensu-install --plugins {{ sensu_plugins | customizable('plugins') | join (',') }}
{% endblock %}
{% block sensu_client_footer %}{% endblock %}