Puppet Class: yum::repo::rsyslog_v7

Defined in:
manifests/repo/rsyslog_v7.pp

Overview

Class: yum::repo::rsyslog_v7

This class installs the rsyslog v7 repo

Parameters:

  • mirror_url (Any) (defaults to: undef)


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

class yum::repo::rsyslog_v7 (
  $mirror_url = undef
) {

  $real_mirror_url = $mirror_url ? {
    default => $mirror_url,
    undef   => 'http://rpms.adiscon.com/v7-stable/epel-$releasever/$basearch'
  }

  yum::managed_yumrepo { 'rsyslog_v7':
    descr          => 'Adiscon CentOS-$releasever - $basearch',
    baseurl        => $real_mirror_url,
    enabled        => 1,
    gpgcheck       => 1,
    gpgkey         => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Adiscon',
    gpgkey_source  => 'puppet:///modules/yum/rpm-gpg/RPM-GPG-KEY-Adiscon',
    priority       => 10,
    failovermethod => 'priority',
  }
}