Skip to content

Commit 44be129

Browse files
committed
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 4140852)
1 parent 187d6c5 commit 44be129

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/sensu/sensu-client/Dockerfile.j2

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ RUN echo '{{ image_name }} not yet available for {{ base_distro }}' \
8888

8989
# TODO(mandre) Use packaged sensu plugins from centos-opstools for binary distro
9090
# http://cbs.centos.org/koji/search?match=glob&type=package&terms=*sensu*
91-
RUN sensu-install --plugins {{ sensu_plugins | customizable('plugins') | join (',') }}
91+
# NOTE(hrw): whois 5.0.0 requires Ruby 2.4+ while CentOS has 2.0
92+
RUN {%if base_package_type == 'rpm' %} gem install whois:"<5" && {% endif %} sensu-install --plugins {{ sensu_plugins | customizable('plugins') | join (',') }}
9293
{% endblock %}
9394
9495
{% block sensu_client_footer %}{% endblock %}

0 commit comments

Comments
 (0)