summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/icinga2_common.pp
blob: 12fa6ca6eab508cd39256456ae635453c119d018 (plain)
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
44
# Class: profiles::icinga2_common
# ===============================
#
# Common configuration code for Icinga2 agent and master setups.
#
# This manifest is meant to be included from other manifests.
#
# Examples
# --------
#
# @example
#   include profiles::icinga2_common
#
# Authors
# -------
#
# Jan Dittberner <jandd@cacert.org>
#
# Copyright
# ---------
#
# Copyright 2019 Jan Dittberner
class profiles::icinga2_common (
) {
  include profiles::icinga2_certificates
 
  if $::lsbdistcodename == 'stretch' {
    apt::pin { 'icinga2_backports':
      packages => [
        'icinga2',
        'icinga2-bin',
        'icinga2-common',
        'icinga2-doc',
        'icinga2-ido-pgsql',
        'libicinga2',
        'icingaweb2',
        'icingaweb2-common',
      ],
      priority => 500,
      release  => 'stretch-backports',
    }
    Apt::Pin['icinga2_backports'] -> Class['Apt::Update'] -> Package <| tag == 'icinga2' or tag == 'icinga2-ido-pgsql' |>
  }
}