diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2019-09-19 13:50:41 +0200 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2019-09-19 15:45:23 +0200 |
| commit | 41408527ae88ac42de11ca2818ff405320795a8b (patch) | |
| tree | ec8ef392a9b371349e40857cb6a44c6772ce1693 /docker/sensu | |
| parent | 49777e0072966154a0b0669fd4d5ea9cc3d12f44 (diff) | |
| download | kolla-41408527ae88ac42de11ca2818ff405320795a8b.tar.gz kolla-41408527ae88ac42de11ca2818ff405320795a8b.zip | |
sensu-client: install older whois gem
Whois 5.0.0 requires Ruby 2.4 while CentOS has only 2.0 version.
Change-Id: I6ec9d58bf54db1ac69b879785f38fb492bc2dfc2
Diffstat (limited to 'docker/sensu')
| -rw-r--r-- | docker/sensu/sensu-client/Dockerfile.j2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docker/sensu/sensu-client/Dockerfile.j2 b/docker/sensu/sensu-client/Dockerfile.j2 index caccce85b..ef2da7bef 100644 --- a/docker/sensu/sensu-client/Dockerfile.j2 +++ b/docker/sensu/sensu-client/Dockerfile.j2 @@ -88,7 +88,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_package_type == 'rpm' %} gem install whois:"<5" && {% endif %} sensu-install --plugins {{ sensu_plugins | customizable('plugins') | join (',') }} {% endblock %} {% block sensu_client_footer %}{% endblock %} |
