Puppet Class: patching::params

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

Summary

params for the patching module resources

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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'manifests/params.pp', line 2

class patching::params {
  case $facts['os']['family'] {
    'Windows': {
      $patching_dir = 'C:/ProgramData/patching'
      $bin_dir = "${patching_dir}/bin"
      $log_dir = "${patching_dir}/log"
      $owner = 'Administrator'
      $group = 'Administrator'
      $mode = '0770'
    }
    'RedHat': {
      $patching_dir = '/opt/patching'
      $bin_dir = "${patching_dir}/bin"
      $log_dir = "${patching_dir}/log"
      $owner = 'root'
      $group = 'root'
      $mode = '0770'
    }
    'Debian': {
      $patching_dir = '/opt/patching'
      $bin_dir = "${patching_dir}/bin"
      $log_dir = "${patching_dir}/log"
      $owner = 'root'
      $group = 'root'
      $mode = '0770'
    }
    'Suse': {
      $patching_dir = '/opt/patching'
      $bin_dir = "${patching_dir}/bin"
      $log_dir = "${patching_dir}/log"
      $owner = 'root'
      $group = 'root'
      $mode = '0770'
    }
    default: {
      fail("Unsupported OS family: ${facts['os']['family']}")
    }
  }
}