Pin statsd to version 2.1.2

The os-performance-tools library currently caps its statsd dependency at
<3.0[1]. If we try to install latest, puppet will succeed at installing
it in the first place, but upon the next run it will see that it is not
using the latest and try to upgrade and fail due to the cap. Add the pin
so that it doesn't try and fail to install something it can't.

[1] http://git.openstack.org/cgit/openstack/os-performance-tools/tree/requirements.txt?id=d96d5145fa5facdfd7a4e5ea2811948f0efd465e#n7

Change-Id: I37303d3b23cf5c387511292a8e128faa1f9df9ae
This commit is contained in:
Colleen Murphy 2018-07-10 13:47:42 +02:00
parent 3b44d63528
commit 2d4e2178fe
1 changed files with 5 additions and 1 deletions

View File

@ -95,7 +95,11 @@ class subunit2sql (
if ! defined(Package['statsd']) {
package { 'statsd':
ensure => latest,
# 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.
ensure => '2.1.2',
provider => openstack_pip,
require => Class['pip']
}