Update Heka to version 0.10

This change installs the latest version of Heka (0.10.0b0).  This
version of Heka is required because it comes with updated Lua plugins
and modules for InfluxDB.

Change-Id: Ibcb51909658d908979c9f13bdec6a754e2698df2
Implements: blueprint upgrade-influxdb-grafana
This commit is contained in:
Simon Pasquier 2015-07-17 15:23:51 +02:00
parent f6275b0622
commit 2f32d2af5f
3 changed files with 25 additions and 8 deletions

View File

@ -98,17 +98,30 @@ class heka (
alias => 'heka',
}
if $::osfamily == 'Debian' {
# Starting from Heka 0.10.0, the Debian package provides an init script so
# stop the service and disable it.
service { '_hekad_from_package':
ensure => stopped,
name => 'heka',
enable => false,
require => Package['heka'],
before => User['heka'],
}
}
file { $heka::params::lua_modules_dir:
ensure => directory,
require => Package['heka'],
}
user { $heka_user:
shell => '/sbin/nologin',
home => $base_dir,
system => true,
groups => $additional_groups,
alias => 'heka',
shell => '/sbin/nologin',
home => $base_dir,
system => true,
groups => $additional_groups,
alias => 'heka',
require => Package['heka'],
}
file { $base_dir:

View File

@ -10,5 +10,9 @@ flush_count = <%= @flush_count %>
server = "http://<%= @server %>:<%= @port %>"
use_buffering = <%= @use_buffering %>
queue_max_buffer_size = <%= @queue_max_buffer_size %>
queue_full_action = "<%= @queue_full_action %>"
<% if @use_buffering -%>
[<%= @title %>_output.buffering]
max_buffer_size = <%= @queue_max_buffer_size %>
full_action = "<%= @queue_full_action %>"
<% end -%>

View File

@ -5,7 +5,7 @@ ROOT="$(dirname "$(readlink -f "$0")")"
MODULES_DIR="${ROOT}"/deployment_scripts/puppet/modules
RPM_REPO="${ROOT}"/repositories/centos/
DEB_REPO="${ROOT}"/repositories/ubuntu/
HEKA_VERSION="0.9.2"
HEKA_VERSION="0.10.0b0"
# This is the commit id for the current stable/6.1 branch
FUEL_LIB_COMMIT="be44e9ea792fe4314ac8c1b7596742ceb5163f61"
FUEL_LIB_TARBALL_URL="https://github.com/stackforge/fuel-library/archive/${FUEL_LIB_COMMIT}.tar.gz"