File: debian.pp

package info (click to toggle)
puppet-module-voxpupuli-collectd 11.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,308 kB
  • sloc: ruby: 8,119; python: 30; sh: 10; makefile: 4
file content (31 lines) | stat: -rw-r--r-- 972 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
class collectd::repo::debian {

  contain apt

  if $collectd::ci_package_repo {

    apt::source { 'collectd-ci':
      location => 'https://pkg.ci.collectd.org/deb/',
      repos    => "collectd-${$collectd::ci_package_repo}",
      key      => {
        'id'     => 'F806817DC3F5EA417F9FA2963994D24FB8543576',
        'server' => $collectd::package_keyserver,
      },
    }
  } else {
    if $facts['os']['name'] == 'Debian' {
      warning('You\'re trying to use the Ubuntu PPA on a Debian Server, which may cause errors')
      warning('We recommend you to use the $ci_package_repo parameter if you want to use an upstream repo on Debian')
    } else {
      apt::source { 'ppa_collectd':
        location => 'http://ppa.launchpad.net/collectd/collectd-5.5/ubuntu',
        repos    => 'main',
        key      => {
          'id'     => '7543C08D555DC473B9270ACDAF7ECBB3476ACEB3',
          'server' => $collectd::package_keyserver,
        },
      }
    }
  }

}