Puppet Class: incron::remove

Defined in:
manifests/remove.pp

Overview

This class handles removal of all incron-related resources.



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/remove.pp', line 4

class incron::remove {

  if versioncmp($facts['os']['release']['full'], '15.04') >= 0 {
    service { 'incron':
      ensure   => stopped,
      provider => systemd,
    }
  }

  package { 'incron':
    ensure => purged,
  }

  file {
    [
      '/etc/incron.d',
      '/etc/incron.conf',
      '/etc/incron.allow',
      '/etc/incron.deny',
      '/var/spool/incron',
    ]:
      ensure => absent,
      force  => true,
  }

}