Puppet Class: collectd::repo

Defined in:
manifests/repo.pp

Overview

collectd::repo Handle package repo configuration



3
4
5
6
7
8
9
10
11
12
13
# File 'manifests/repo.pp', line 3

class collectd::repo {
  if $collectd::manage_repo {
    $osfamily_downcase = downcase($facts['os']['family'])

    if defined("::collectd::repo::${osfamily_downcase}") {
      require "::collectd::repo::${osfamily_downcase}"
    } else {
      notify { "You have asked to manage_repo on a system that doesn't have a repo class specified: ${facts['os']['family']}": }
    }
  }
}