Puppet Class: yumrepos::drush8

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

Overview

Class: yumrepos::drush8

Installs the Drush 8.x yum repository.

Parameters:

  • drush8_url (Any) (defaults to: $yumrepos::params::drush8_url)
  • drush8_enabled (Any) (defaults to: $yumrepos::params::drush8_enabled)
  • drush8_gpgcheck (Any) (defaults to: $yumrepos::params::drush8_gpgcheck)
  • drush8_includepkgs (Any) (defaults to: $yumrepos::params::drush8_includepkgs)
  • drush8_exclude (Any) (defaults to: $yumrepos::params::drush8_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/drush8.pp', line 5

class yumrepos::drush8 (
  $drush8_url = $yumrepos::params::drush8_url,
  $drush8_enabled = $yumrepos::params::drush8_enabled,
  $drush8_gpgcheck = $yumrepos::params::drush8_gpgcheck,
  $drush8_includepkgs = $yumrepos::params::drush8_includepkgs,
  $drush8_exclude = $yumrepos::params::drush8_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-drush8':
    descr       => 'Tag1 Drush 8',
    baseurl     => $drush8_url,
    enabled     => $drush8_enabled,
    includepkgs => $drush8_includepkgs,
    exclude     => $drush8_exclude,
    gpgcheck    => $drush8_gpgcheck,
    gpgkey      => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-TAG1',
    require     => File['/etc/pki/rpm-gpg/RPM-GPG-KEY-TAG1'],
  }

}