Puppet Class: logstash
- Defined in:
- manifests/init.pp
Overview
This class manages installation, configuration and execution of Logstash 5.x.
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'manifests/init.pp', line 137
class logstash(
$ensure = 'present',
$status = 'enabled',
Boolean $restart_on_change = true,
Boolean $auto_upgrade = false,
$version = undef,
$package_url = undef,
$package_name = 'logstash',
Integer $download_timeout = 600,
$logstash_user = 'logstash',
$logstash_group = 'logstash',
$config_dir = '/etc/logstash',
Boolean $purge_config = true,
$service_provider = undef,
$settings = {},
$startup_options = {},
$jvm_options = [],
Array $pipelines = [],
Boolean $manage_repo = true,
)
{
$home_dir = '/usr/share/logstash'
if ! ($ensure in [ 'present', 'absent' ]) {
fail("\"${ensure}\" is not a valid ensure parameter value")
}
if ! ($status in [ 'enabled', 'disabled', 'running', 'unmanaged' ]) {
fail("\"${status}\" is not a valid status parameter value")
}
if ($manage_repo == true) {
include elastic_stack::repo
}
include logstash::package
include logstash::config
include logstash::service
}
|