Install statsd version 2.1.2

The logstash log processing and subunit2sql tooling is often paired
together on servers. Currently subunit2sql depends on
os-performance-tools which depend on statsd<3.0. That means our package
resource here for statsd that tried to install latest conflicts with our
usage of subunit2sql on the same server.

Avoid this conflict by installing 2.1.2 for geard and then subunit2sql
will be happy too.

Change-Id: I3ac04cb93025ae2e2115ed23ba4927c2060f6dc8
This commit is contained in:
Clark Boylan 2018-10-18 11:38:47 -07:00
parent 8c748b0cd5
commit 79ef165477
1 changed files with 13 additions and 4 deletions

View File

@ -71,11 +71,20 @@ class log_processor (
require => Class['pip'],
}
package { 'statsd':
ensure => latest,
provider => openstack_pip,
require => Class['pip'],
if ! defined(Package['statsd']) {
package { 'statsd':
# NOTE(cmurphy) If this is not pinned, the openstack_pip provider will
# attempt to install latest and conflict with the <3 cap from
# os-performance-tools. Unpin this when os-performance-tools raises its
# cap.
# NOTE (clarkb) we also install it here because geard can report stats
# with statsd so need it even if subunit2sql is not used.
ensure => '2.1.2',
provider => openstack_pip,
require => Class['pip']
}
}
# Temporarily pin paho-mqtt to 1.2.3 since 1.3.0 won't support TLS on
# Trusty's Python 2.7.
if ! defined(Package['paho-mqtt']) {