From 35f7f0dd7887f9bb96ea38c9326280ad4b88be8f Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 12 Jun 2018 09:22:31 +1000 Subject: [PATCH] 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 --- modules/openstack_project/manifests/git.pp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/modules/openstack_project/manifests/git.pp b/modules/openstack_project/manifests/git.pp index 526321a4ab..e1d2db52ea 100644 --- a/modules/openstack_project/manifests/git.pp +++ b/modules/openstack_project/manifests/git.pp @@ -148,13 +148,21 @@ class openstack_project::git ( notify => Service['rsyslog'], } - file { '/usr/local/bin/haproxy-statsd.py': + + # haproxy statsd + + package { 'python2-statsd': ensure => present, - owner => 'root', - group => 'root', - mode => '0755', - source => 'puppet:///modules/openstack_project/git/haproxy-statsd.py', + } + + file { '/usr/local/bin/haproxy-statsd.py': + ensure => present, + owner => 'root', + group => 'root', + mode => '0755', + source => 'puppet:///modules/openstack_project/git/haproxy-statsd.py', notify => Service['haproxy-statsd'], + require => Package['python2-statsd'], } file { '/etc/default/haproxy-statsd':