Puppet Class: mcelog::params

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

Overview



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/params.pp', line 2

class mcelog::params {
  $package_name         = 'mcelog'
  $config_file_path     = '/etc/mcelog/mcelog.conf'
  $config_file_template = 'mcelog/mcelog.conf.erb'

  # MCE is only supported on x86_64
  case $::architecture {
    'x86_64': {}
    default: {
      fail("Module ${module_name} is not supported on architecture: ${::architecture}")
    }
  }
  case $::osfamily {
    'RedHat': {
      if Integer($facts['os']['release']['major']) == 6 {
        $service_name = 'mcelogd'
      } else {
        $service_name = 'mcelog'
      }
    }
    default: {
      fail("Module ${module_name} is not supported on osfamily: ${::osfamily}")
    }
  }
}