Puppet Class: arpwatch::params

Inherited by:
arpwatch
Defined in:
manifests/params.pp

Overview

Class: arpwatch::params



3
4
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
# File 'manifests/params.pp', line 3

class arpwatch::params {
    $package_name = 'arpwatch'
    $service_name = '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.")
    }
  }
}