diff options
| author | Martin André <m.andre@redhat.com> | 2018-05-30 13:32:01 +0200 |
|---|---|---|
| committer | Martin André <m.andre@redhat.com> | 2018-05-31 18:35:36 +0200 |
| commit | 76a965ad8032e70cdb3286f989f21876e0af7a76 (patch) | |
| tree | 2e6cc4779be7f8935d7a3a1992e8480e60161c4f /docker | |
| parent | a126aca2982b9b0078fb10f0765855fd7b81a888 (diff) | |
| download | kolla-76a965ad8032e70cdb3286f989f21876e0af7a76.tar.gz kolla-76a965ad8032e70cdb3286f989f21876e0af7a76.zip | |
Install sensu from centos-opstools
This should help improve stability overall, in exchange for slightly
older package version.
Cap all the sensu plugins to their known major version that works with
the ruby interpreter shipped with the current version of
rhel/centos/oraclelinux -- currently ruby 2.0. All sensu plugins use
semantic versioning so we're assured they don't introduce breaking
changes in the capped major version.
Change-Id: Ic5ca679c40da3e466433b0e04f762d2bbffbf156
Closes-Bug: #1774123
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/base/Dockerfile.j2 | 1 | ||||
| -rw-r--r-- | docker/base/sensu.repo | 6 | ||||
| -rw-r--r-- | docker/sensu/sensu-client/Dockerfile.j2 | 54 |
3 files changed, 29 insertions, 32 deletions
diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 703bdfb8f..3e27537f9 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -76,7 +76,6 @@ RUN echo {{ centos_contentdir }} >> /etc/yum/vars/contentdir 'kibana.yum.repo', 'nfs_ganesha.repo', 'opendaylight.repo', - 'sensu.repo', 'td.repo' ] %} diff --git a/docker/base/sensu.repo b/docker/base/sensu.repo deleted file mode 100644 index f4880f553..000000000 --- a/docker/base/sensu.repo +++ /dev/null @@ -1,6 +0,0 @@ -[sensu] -name=sensu -baseurl=https://sensu.global.ssl.fastly.net/yum/$releasever/$basearch/ -gpgcheck=1 -enabled=1 -gpgkey=https://sensu.global.ssl.fastly.net/yum/pubkey.gpg diff --git a/docker/sensu/sensu-client/Dockerfile.j2 b/docker/sensu/sensu-client/Dockerfile.j2 index 03f75c229..718f05b0c 100644 --- a/docker/sensu/sensu-client/Dockerfile.j2 +++ b/docker/sensu/sensu-client/Dockerfile.j2 @@ -46,34 +46,38 @@ RUN echo '{{ image_name }} not yet available for {{ base_distro }}' \ {% block sensu_clients_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 = [ - 'ceph', - 'cpu-checks', - 'disk-checks', - 'dns', - 'docker', - 'elasticsearch', - 'filesystem-checks', - 'haproxy', - 'http', - 'io-checks', - 'load-checks', - 'memcached', - 'memory-checks', - 'mongodb', - 'mysql', - 'network-checks', - 'ntp', - 'openstack', - 'process-checks', - 'rabbitmq', - 'redis', - 'uptime-checks', - 'vmstats' + 'ceph:"~>1"', + 'cpu-checks:"~>1"', + 'disk-checks:"~>2"', + 'dns:"~>1"', + 'docker:"~>3"', + 'elasticsearch:"~>1"', + 'filesystem-checks:"~>1"', + 'haproxy:"~>1"', + 'http:"~>1"', + 'io-checks:"~>1"', + 'load-checks:"~>3"', + 'memcached:"~>0"', + 'memory-checks:"~>1"', + 'mongodb:"~>0"', + 'mysql:"~>2"', + 'network-checks:"~>2"', + 'ntp:"~>1"', + 'openstack:"~>1"', + 'process-checks:"~>2"', + 'rabbitmq:"~>3"', + 'redis:"~>2"', + 'uptime-checks:"~>1"', + 'vmstats:"~>1"' ] %} -RUN /opt/sensu/embedded/bin/gem install vmstat --no-rdoc --no-ri \ - && sensu-install --plugins {{ sensu_plugins | customizable('plugins') | join (',') }} +# 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 (',') }} {% endblock %} {% block sensu_client_footer %}{% endblock %} |
