File: install.pp

package info (click to toggle)
puppet-module-pcfens-filebeat 4.9.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 428 kB
  • sloc: ruby: 549; sh: 10; makefile: 4
file content (43 lines) | stat: -rw-r--r-- 1,387 bytes parent folder | download | duplicates (2)
1
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
41
42
43
# filebeat::install
#
# A private class to manage the installation of Filebeat
#
# @summary A private class that manages the install of Filebeat
class filebeat::install {
  anchor { 'filebeat::install::begin': }

  case $::kernel {
    'Linux':   {
      class{ '::filebeat::install::linux':
        notify => Class['filebeat::service'],
      }
      Anchor['filebeat::install::begin'] -> Class['filebeat::install::linux'] -> Anchor['filebeat::install::end']
      if $::filebeat::manage_repo {
        class { '::filebeat::repo': }
        Class['filebeat::repo'] -> Class['filebeat::install::linux']
      }
    }
    'FreeBSD': {
      class{ '::filebeat::install::freebsd':
        notify => Class['filebeat::service'],
      }
      Anchor['filebeat::install::begin'] -> Class['filebeat::install::freebsd'] -> Anchor['filebeat::install::end']
    }
    'OpenBSD': {
      class{'filebeat::install::openbsd':}
      Anchor['filebeat::install::begin'] -> Class['filebeat::install::openbsd'] -> Anchor['filebeat::install::end']
    }
    'Windows': {
      class{'::filebeat::install::windows':
        notify => Class['filebeat::service'],
      }
      Anchor['filebeat::install::begin'] -> Class['filebeat::install::windows'] -> Anchor['filebeat::install::end']
    }
    default:   {
      fail($filebeat::kernel_fail_message)
    }
  }

  anchor { 'filebeat::install::end': }

}