Skip to content

Commit

Permalink
custom status command only applies to <= 12.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kitchen committed Nov 20, 2013
1 parent 106167c commit eb26bf1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,16 @@

$gmond_service_config = '/etc/ganglia/gmond.conf'
$gmond_service_erb = 'ganglia/gmond.conf.ubuntu.erb'
$gmond_status_command = 'pgrep -u ganglia -f /usr/sbin/gmond'

$gmetad_service_config = '/etc/ganglia/gmetad.conf'
$gmetad_status_command = 'pgrep -u nobody -f /usr/sbin/gmetad'
# it's the same file as el6 with only the default user comment changed
$gmetad_service_erb = 'ganglia/gmetad.conf.el6.erb'

# ubuntu 12.10 and below didn't have a status command in the init script
if ($::lsbmajdistrelease <= 12) {
$gmond_status_command = 'pgrep -u ganglia -f /usr/sbin/gmond'
$gmetad_status_command = 'pgrep -u nobody -f /usr/sbin/gmetad'
}
}
default: {
fail("Module ${module_name} is not supported on osfamily/operatingsystem: ${::osfamily}/${::operatingsystem}")
Expand Down

0 comments on commit eb26bf1

Please sign in to comment.