Puppet Class: yumrepos::mariadb10

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

Overview

Class: yumrepos::mariadb10

Installs the MariaDB 10 yum repository.

Parameters:

  • mariadb10_url (Any) (defaults to: $yumrepos::params::mariadb10_url)
  • mariadb10_enabled (Any) (defaults to: $yumrepos::params::mariadb10_enabled)
  • mariadb10_gpgcheck (Any) (defaults to: $yumrepos::params::mariadb10_gpgcheck)
  • mariadb10_includepkgs (Any) (defaults to: $yumrepos::params::mariadb10_includepkgs)
  • mariadb10_exclude (Any) (defaults to: $yumrepos::params::mariadb10_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/mariadb10.pp', line 5

class yumrepos::mariadb10 (
  $mariadb10_url = $yumrepos::params::mariadb10_url,
  $mariadb10_enabled = $yumrepos::params::mariadb10_enabled,
  $mariadb10_gpgcheck = $yumrepos::params::mariadb10_gpgcheck,
  $mariadb10_includepkgs = $yumrepos::params::mariadb10_includepkgs,
  $mariadb10_exclude = $yumrepos::params::mariadb10_exclude,
) inherits yumrepos::params {

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

  yumrepo { 'mariadb-10':
    descr       => 'MariaDB 10',
    baseurl     => $mariadb10_url,
    enabled     => $mariadb10_enabled,
    includepkgs => $mariadb10_includepkgs,
    exclude     => $mariadb10_exclude,
    gpgcheck    => $mariadb10_gpgcheck,
    gpgkey      => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-MariaDB',
    require     => File['/etc/pki/rpm-gpg/RPM-GPG-KEY-MariaDB'],
  }
}