Puppet Class: oxidized::repo

Defined in:
manifests/repo.pp

Summary

Manage repos needed for oxidized

Overview



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/repo.pp', line 3

class oxidized::repo {
  if $facts['os']['family'] == 'RedHat' {
    include epel
    $oxidized::install_dependencies.each |$package| {
      Yumrepo['epel'] -> Package[$package]
    }
    if versioncmp($facts['os']['release']['major'], '7') == 0 {
      if $facts['os']['name'] == 'RedHat' {
        rh_repo { "rhel-server-rhscl-${facts['os']['release']['major']}-rpms":
          ensure => 'present',
          before => Package[$::oxidized::ruby_dependencies],
        }
      } else {
        package { 'centos-release-scl':
          ensure => 'installed',
          before => Package[$::oxidized::ruby_dependencies],
        }
      }
    }
  }
}