Skip to content

Commit

Permalink
Fixed typo breaking logstash::config on older puppet. Added centos to…
Browse files Browse the repository at this point in the history
… operatingsystem checks

Signed-off-by: Simon McCartney <simon@mccartney.ie>
  • Loading branch information
simonmcc committed Sep 11, 2012
1 parent 4f6ae97 commit 6f8898e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Modulefile
@@ -1,5 +1,5 @@
name 'simonmcc-logstash'
version '0.0.2'
version '0.0.4'
author 'Simon McCartney'
license 'UNKNOWN'
summary 'install & configure logstash, including dependencies & init scripts'
Expand Down
4 changes: 2 additions & 2 deletions manifests/config.pp
Expand Up @@ -35,8 +35,8 @@
$redis_port = '6379',
$redis_key = 'logstash',
$java_provider = 'package',
$java_package = 'openjdk',
$java_home = '/usr/lib/jvm/jre-1.6.0-openjdk.x86_64',
$java_package = 'java-1.6.0-openjdk',
$java_home = '/usr/lib/jvm/jre-1.6.0-openjdk.x86_64'
) {

# just trying to make the fq variable a little less rediculous
Expand Down
2 changes: 2 additions & 0 deletions manifests/redis.pp
Expand Up @@ -42,6 +42,7 @@
# where is the redis config file?
$redis_conf = $operatingsystem ? {
ubuntu => '/etc/redis/redis.conf',
centos => '/etc/redis.conf',
redhat => '/etc/redis.conf',
default => undef,
}
Expand All @@ -56,6 +57,7 @@
# What's the service name on this platform?
$redis_service = $operatingsystem ? {
ubuntu => 'redis-server',
centos => 'redis',
redhat => 'redis',
default => undef,
}
Expand Down

0 comments on commit 6f8898e

Please sign in to comment.