Puppet Class: udp2log
- Defined in:
- modules/udp2log/manifests/init.pp
Summary
Overview
SPDX-License-Identifier: Apache-2.0
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'modules/udp2log/manifests/init.pp', line 5
class udp2log (
Boolean $monitor = true,
Boolean $default_instance = true
) {
# make sure the udplog package is installed
ensure_packages(['udplog'])
# make sure the udp2log filter config directory exists
file { '/etc/udp2log':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0775',
}
sysctl::parameters { 'big rmem':
values => {
'net.core.rmem_max' => 536870912,
'net.core.rmem_default' => 4194304,
},
}
# Include the monitoring scripts
# required for monitoring udp2log instances.
class { 'udp2log::monitoring':
enabled => $monitor,
}
if $default_instance {
systemd::unmask { 'udp2log.service':
require => Package['udplog'],
}
} else {
systemd::mask { 'udp2log.service':
require => Package['udplog'],
}
}
}
|