Puppet Class: yumrepos::drush5

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

Overview

Class: yumrepos::drush5

Installs the Drush 5.x yum repository.

Parameters:

  • drush5_url (Any) (defaults to: $yumrepos::params::drush5_url)
  • drush5_enabled (Any) (defaults to: $yumrepos::params::drush5_enabled)
  • drush5_gpgcheck (Any) (defaults to: $yumrepos::params::drush5_gpgcheck)
  • drush5_includepkgs (Any) (defaults to: $yumrepos::params::drush5_includepkgs)
  • drush5_exclude (Any) (defaults to: $yumrepos::params::drush5_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
32
# File 'manifests/drush5.pp', line 5

class yumrepos::drush5 (
  $drush5_url = $yumrepos::params::drush5_url,
  $drush5_enabled = $yumrepos::params::drush5_enabled,
  $drush5_gpgcheck = $yumrepos::params::drush5_gpgcheck,
  $drush5_includepkgs = $yumrepos::params::drush5_includepkgs,
  $drush5_exclude = $yumrepos::params::drush5_exclude,
) inherits yumrepos::params {

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

  yumrepo { 'tag1-drush5':
    descr       => 'Tag1 Drush 5',
    baseurl     => $drush5_url,
    enabled     => $drush5_enabled,
    includepkgs => $drush5_includepkgs,
    exclude     => $drush5_exclude,
    gpgcheck    => $drush5_gpgcheck,
    gpgkey      => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-TAG1',
    require     => File['/etc/pki/rpm-gpg/RPM-GPG-KEY-TAG1'],
  }

}