Puppet Class: yumrepos::newrelic

Inherits:
yumrepos::params
Defined in:
manifests/newrelic.pp

Overview

Class: yumrepos::newrelic

Installs the New Relic yum repository.

Parameters:

  • newrelic_url (Any) (defaults to: $yumrepos::params::newrelic_url)
  • newrelic_enabled (Any) (defaults to: $yumrepos::params::newrelic_enabled)
  • newrelic_gpgcheck (Any) (defaults to: $yumrepos::params::newrelic_gpgcheck)
  • newrelic_includepkgs (Any) (defaults to: $yumrepos::params::newrelic_includepkgs)
  • newrelic_exclude (Any) (defaults to: $yumrepos::params::newrelic_exclude)


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

class yumrepos::newrelic (
  $newrelic_url = $yumrepos::params::newrelic_url,
  $newrelic_enabled = $yumrepos::params::newrelic_enabled,
  $newrelic_gpgcheck = $yumrepos::params::newrelic_gpgcheck,
  $newrelic_includepkgs = $yumrepos::params::newrelic_includepkgs,
  $newrelic_exclude = $yumrepos::params::newrelic_exclude,
) inherits yumrepos::params {

  file { '/etc/pki/rpm-gpg/RPM-GPG-KEY-newrelic':
    ensure => present,
    owner  => root,
    group  => root,
    mode   => '0644',
    source => 'puppet:///modules/yumrepos/etc/pki/rpm-gpg/RPM-GPG-KEY-newrelic',
  }

  yumrepo { 'newrelic':
    descr       => 'New Relic',
    baseurl     => $newrelic_url,
    enabled     => $newrelic_enabled,
    includepkgs => $newrelic_includepkgs,
    exclude     => $newrelic_exclude,
    gpgcheck    => $newrelic_gpgcheck,
    gpgkey      => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-newrelic',
    require     => File['/etc/pki/rpm-gpg/RPM-GPG-KEY-newrelic'],
  }
}