Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/filebeat.pp
# Filebeat apache log shipper profile | # Filebeat apache log shipper profile | ||||
class profile::filebeat { | class profile::filebeat { | ||||
$config_directory = '/etc/filebeat' | $config_directory = '/etc/filebeat' | ||||
$config_file = 'filebeat.yml' | $config_file = 'filebeat.yml' | ||||
$config_path = "${config_directory}/${config_file}" | $config_path = "${config_directory}/${config_file}" | ||||
include ::profile::elastic::apt_config | include ::profile::elastic::apt_config | ||||
$version = lookup('elastic::elk_version') | $default_elk_version = lookup('elastic::elk_version') | ||||
$version = lookup('elastic::beat_version', { default_value => $default_elk_version }) | |||||
package { 'filebeat': | package { 'filebeat': | ||||
ensure => $version, | ensure => $version, | ||||
} | } | ||||
apt::pin { 'filebeat': | apt::pin { 'filebeat': | ||||
packages => 'filebeat', | packages => 'filebeat', | ||||
version => $version, | version => $version, | ||||
Show All 29 Lines |