Puppet Class: puppet::package::patches

Defined in:
manifests/package/patches.pp

Overview

Class: puppet::package::patches

Install critical patches for defective versions

Notes

IT’S NOT A HACK, IT’S A FEATURE! WHEEEEEEEEEEEE!



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
# File 'manifests/package/patches.pp', line 9

class puppet::package::patches {

  # fix facter.
  if $::operatingsystem == 'debian' or $::operatingsystem == 'ubuntu' {
    if $::facterversion == '1.6.6' {
      # Patch facter.
      file{ '/usr/lib/ruby/1.8/facter/virtual.rb':
        source => 'puppet:///modules/puppet/patches/virtual.rb'
      }
    }
    if $::facterversion == '1.6.9' {
      # Patch facter.
      file{ '/usr/lib/ruby/1.8/facter/lsbrelease.rb':
        source => 'puppet:///modules/puppet/patches/lsbrelease.rb'
      }
    }
  }

  if $::operatingsystem == 'ubuntu' {
    if $::puppetversion == '2.7.16' {
      # https://projects.puppetlabs.com/issues/15029
      file{ '/usr/lib/ruby/1.8/puppet/provider/service/upstart.rb':
        source => 'puppet:///modules/puppet/patches/upstart.rb'
      }
    }
  }

  # https://github.com/puppetlabs/puppet/pull/798
  # Make it not tell me about not every host not supporting AIX/Sol ACLs
  if $::operatingsystem == 'Debian' {
    if $::puppetversion == '2.7.18' {
      file{ '/usr/lib/ruby/1.8/puppet/type.rb':
        source => 'puppet:///modules/puppet/patches/type.rb'
      }
    }
  }

}