Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/logstash.pp
Show All 34 Lines | class profile::logstash { | ||||
file { '/etc/logstash/conf.d/filter.conf': | file { '/etc/logstash/conf.d/filter.conf': | ||||
ensure => 'file', | ensure => 'file', | ||||
content => template('profile/logstash/filter.conf.erb'), | content => template('profile/logstash/filter.conf.erb'), | ||||
require => Package['logstash'], | require => Package['logstash'], | ||||
notify => Service['logstash'], | notify => Service['logstash'], | ||||
} | } | ||||
file { '/etc/logstash/logstash.yml': | |||||
ensure => 'file', | |||||
source => 'puppet:///modules/profile/logstash/logstash.yml', | |||||
require => Package['logstash'], | |||||
notify => Service['logstash'], | |||||
} | |||||
service { 'logstash': | service { 'logstash': | ||||
ensure => running, | ensure => running, | ||||
enable => true, | enable => true, | ||||
require => [Package['logstash'], | require => [Package['logstash'], | ||||
File['/etc/logstash/conf.d/input.conf'], | File['/etc/logstash/conf.d/input.conf'], | ||||
File['/etc/logstash/conf.d/output.conf'], | File['/etc/logstash/conf.d/output.conf'], | ||||
File['/etc/logstash/conf.d/filter.conf'] | File['/etc/logstash/conf.d/filter.conf'] | ||||
], | ], | ||||
Show All 13 Lines |