Add python2-statsd for haproxy stats

We haven't been receiving any stats since presumably the server
upgrade, because the statsd package wasn't installed.

Change-Id: I98d2625e5a44e9c416baca2fc60eb5304a08a58a
This commit is contained in:
Ian Wienand 2018-06-12 09:22:31 +10:00
parent 73aadfd49f
commit 35f7f0dd78

View File

@ -148,6 +148,13 @@ class openstack_project::git (
notify => Service['rsyslog'], notify => Service['rsyslog'],
} }
# haproxy statsd
package { 'python2-statsd':
ensure => present,
}
file { '/usr/local/bin/haproxy-statsd.py': file { '/usr/local/bin/haproxy-statsd.py':
ensure => present, ensure => present,
owner => 'root', owner => 'root',
@ -155,6 +162,7 @@ class openstack_project::git (
mode => '0755', mode => '0755',
source => 'puppet:///modules/openstack_project/git/haproxy-statsd.py', source => 'puppet:///modules/openstack_project/git/haproxy-statsd.py',
notify => Service['haproxy-statsd'], notify => Service['haproxy-statsd'],
require => Package['python2-statsd'],
} }
file { '/etc/default/haproxy-statsd': file { '/etc/default/haproxy-statsd':