1
0
mirror of https://github.com/ardichoke/puppet-arpwatch.git synced 2026-05-11 02:15:37 -04:00

Add Debian support

This commit is contained in:
2017-04-07 10:41:07 -04:00
parent d79f35a823
commit 41d9b4d879
8 changed files with 83 additions and 68 deletions

View File

@@ -1,17 +1,26 @@
# Class: arpwatch::params
# ========================
class arpwatch::params {
case $::osfamily {
'RedHat': {
$package_name = 'arpwatch'
$service_name = 'arpwatch'
$interface = 'eth0'
$config_file = '/etc/sysconfig/arpwatch'
$config_template = 'arpwatch/conf.rhel.erb'
$service_user = $::operatingsystemmajrelease ? {
'5' => 'pcap',
default => 'arpwatch',
}
case $::osfamily {
'RedHat': {
$interface = 'eth0'
$config_file = '/etc/sysconfig/arpwatch'
$config_template = 'arpwatch/conf.rhel.erb'
$opts = ''
$service_user = $::operatingsystemmajrelease ? {
'5' => 'pcap',
default => 'arpwatch',
}
}
'Debian': {
$interface = 'eth0'
$config_file = '/etc/default/arpwatch'
$config_template = 'arpwatch/conf.deb.erb'
$service_user = 'arpwatch'
$opts = '-N -p'
}
default: {
fail("The ${module_name} module is not supported on an ${::osfamily} distribution.")