Puppet Class: fail2ban::params

Defined in:
manifests/params.pp

Overview

Class: fail2ban::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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'manifests/params.pp', line 3

class fail2ban::params {
  $package_name = $::osfamily ? {
    default => 'fail2ban',
  }

  $package_list = $::osfamily ? {
    default => undef,
  }

  $config_dir_path = $::osfamily ? {
    default => '/etc/fail2ban',
  }

  $config_dir_filter_path = $::osfamily ? {
    default => '/etc/fail2ban/filter.d',
  }

  $config_file_path = $::osfamily ? {
    default => '/etc/fail2ban/jail.conf',
  }

  $config_file_owner = $::osfamily ? {
    default => 'root',
  }

  $config_file_group = $::osfamily ? {
    default => 'root',
  }

  $config_file_mode = $::osfamily ? {
    default => '0644',
  }

  $config_file_notify = $::osfamily ? {
    default => 'Service[fail2ban]',
  }

  $config_file_require = $::osfamily ? {
    default => 'Package[fail2ban]',
  }

  $service_name = $::osfamily ? {
    default => 'fail2ban',
  }

  case $::osfamily {
    'Debian': {
    }
    'RedHat': {
    }
    default: {
      fail("${::operatingsystem} not supported.")
    }
  }
}