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

Commit v0.1.0

This commit is contained in:
2016-10-18 13:55:40 -04:00
parent 0a7000626c
commit 3d39a0978a
7 changed files with 282 additions and 0 deletions

20
manifests/params.pp Normal file
View File

@@ -0,0 +1,20 @@
# 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 = $::os_maj_version ? {
'5' => 'pcap',
default => 'arpwatch',
}
}
default: {
fail("The ${module_name} module is not supported on an ${::osfamily} distribution.")
}
}
}