Puppet Class: icinga::repository

Defined in:
manifests/repository.pp

Overview

Class: icinga::repository

This class configures the repository for Icinga



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
# File 'manifests/repository.pp', line 6

class icinga::repository {

  if ( $::icinga::bool_enable_debian_repo_legacy != true and
  $::operatingsystem =~ /(?i:Ubuntu|Mint)/ and
  $::icinga::bool_manage_repos == true
  ) {
    apt::repository { 'icinga-web':
      url        => 'http://ppa.launchpad.net/formorer/icinga-web/ubuntu',
      distro     => $::lsbdistcodename,
      repository => 'main',
      keyserver  => 'keyserver.ubuntu.com',
      key        => '36862847',
    }
    apt::repository { 'icinga':
      url        => 'http://ppa.launchpad.net/formorer/icinga/ubuntu',
      distro     => $::lsbdistcodename,
      repository => 'main',
      keyserver  => 'keyserver.ubuntu.com',
      key        => '36862847',
    } 
  }

  if ( $::icinga::bool_enable_debian_repo_legacy == true or
  ($::operatingsystem =~ /(?i:Debian)/ and $::icinga::bool_manage_repos == true)
  ) {
    # Perhaps on Debian we should use the packages from debmon.org
    apt::repository { 'icinga':
      url        => 'http://icingabuild.dus.dg-i.net/',
      distro     => "icinga-web-${::lsbdistcodename}",
      repository => 'main',
    }
  }

}