Puppet Class: percona::repo::yum

Defined in:
manifests/repo/yum.pp

Overview

Class: percona::repo::yum

percona::repo::yum is to setup yum repository.

Parameters:

  • ensure (Any) (defaults to: $percona::repo::ensure)
  • percona_release_basearch_enabled (Any) (defaults to: $percona::repo::percona_release_basearch_enabled)
  • percona_release_noarch_enabled (Any) (defaults to: $percona::repo::percona_release_noarch_enabled)
  • percona_release_source_enabled (Any) (defaults to: $percona::repo::percona_release_source_enabled)
  • percona_testing_basearch_enabled (Any) (defaults to: $percona::repo::percona_testing_basearch_enabled)
  • percona_testing_noarch_enabled (Any) (defaults to: $percona::repo::percona_testing_noarch_enabled)
  • percona_testing_source_enabled (Any) (defaults to: $percona::repo::percona_testing_source_enabled)
  • percona_experimental_basearch_enabled (Any) (defaults to: $percona::repo::percona_experimental_basearch_enabled)
  • percona_experimental_noarch_enabled (Any) (defaults to: $percona::repo::percona_experimental_noarch_enabled)
  • percona_experimental_source_enabled (Any) (defaults to: $percona::repo::percona_experimental_source_enabled)


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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'manifests/repo/yum.pp', line 5

class percona::repo::yum (
  $ensure                                = $percona::repo::ensure,
  $percona_release_basearch_enabled      = $percona::repo::percona_release_basearch_enabled,
  $percona_release_noarch_enabled        = $percona::repo::percona_release_noarch_enabled,
  $percona_release_source_enabled        = $percona::repo::percona_release_source_enabled,
  $percona_testing_basearch_enabled      = $percona::repo::percona_testing_basearch_enabled,
  $percona_testing_noarch_enabled        = $percona::repo::percona_testing_noarch_enabled,
  $percona_testing_source_enabled        = $percona::repo::percona_testing_source_enabled,
  $percona_experimental_basearch_enabled = $percona::repo::percona_experimental_basearch_enabled,
  $percona_experimental_noarch_enabled   = $percona::repo::percona_experimental_noarch_enabled,
  $percona_experimental_source_enabled   = $percona::repo::percona_experimental_source_enabled,
) {

  require percona::rpm_gpg_key

  yumrepo {
    default:
      ensure   => $ensure,
      gpgcheck => 1,
      gpgkey   => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Percona';

    'percona-release-$basearch':
      descr   => 'Percona-Release YUM repository - $basearch',
      baseurl => 'http://repo.percona.com/release/$releasever/RPMS/$basearch',
      enabled => $percona_release_basearch_enabled;

    'percona-release-noarch':
      descr   => 'Percona-Release YUM repository - noarch',
      baseurl => 'http://repo.percona.com/release/$releasever/RPMS/noarch',
      enabled => $percona_release_noarch_enabled;

    'percona-release-source':
      descr   => 'Percona-Release YUM repository - Source packages',
      baseurl => 'http://repo.percona.com/release/$releasever/SRPMS',
      enabled => $percona_release_source_enabled;

    'percona-testing-$basearch':
      descr   => 'Percona-Testing YUM repository - $basearch',
      baseurl => 'http://repo.percona.com/testing/$releasever/RPMS/$basearch',
      enabled => $percona_testing_basearch_enabled;

    'percona-testing-noarch':
      descr   => 'Percona-Testing YUM repository - noarch',
      baseurl => 'http://repo.percona.com/testing/$releasever/RPMS/noarch',
      enabled => $percona_testing_noarch_enabled;

    'percona-testing-source':
      descr   => 'Percona-Testing YUM repository - Source packages',
      baseurl => 'http://repo.percona.com/testing/$releasever/SRPMS',
      enabled => $percona_testing_source_enabled;

    'percona-experimental-$basearch':
      descr   => 'Percona-Experimental YUM repository - $basearch',
      baseurl => 'http://repo.percona.com/experimental/$releasever/RPMS/$basearch',
      enabled => $percona_experimental_basearch_enabled;

    'percona-experimental-noarch':
      descr   => 'Percona-Experimental YUM repository - noarch',
      baseurl => 'http://repo.percona.com/experimental/$releasever/RPMS/noarch',
      enabled => $percona_experimental_noarch_enabled;

    'percona-experimental-source':
      descr   => 'Percona-Experimental YUM repository - Source packages',
      baseurl => 'http://repo.percona.com/experimental/$releasever/SRPMS',
      enabled => $percona_experimental_source_enabled;
  }

}