Skip to content

Commit

Permalink
Add more class parameters to epel class
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsheltren committed Mar 3, 2014
1 parent 3673a5c commit 2e1233e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
18 changes: 12 additions & 6 deletions manifests/epel.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
class yumrepos::epel (
$epel_url = $yumrepos::params::epel_url,
$epel_enabled = $yumrepos::params::epel_enabled,
$epel_gpgcheck = $yumrepos::params::epel_gpgcheck,
$epel_includepkgs = $yumrepos::params::epel_includepkgs,
$epel_exclude = $yumrepos::params::epel_exclude,
) inherits yumrepos::params {

file { "/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-${::operatingsystemmajrelease}":
Expand All @@ -11,11 +15,13 @@
}

yumrepo { 'epel':
descr => 'EPEL',
baseurl => $epel_url,
enabled => '1',
gpgcheck => '1',
gpgkey => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-${::operatingsystemmajrelease}",
require => File["/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-${::operatingsystemmajrelease}"],
descr => 'EPEL',
baseurl => $epel_url,
enabled => $epel_enabled,
gpgcheck => $epel_gpgcheck,
includepkgs => $epel_includepkgs,
exclude => $epel_exclude,
gpgkey => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-${::operatingsystemmajrelease}",
require => File["/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-${::operatingsystemmajrelease}"],
}
}
5 changes: 5 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
class yumrepos::params {

# EPEL Settings.
$epel_url = "http://download.fedoraproject.org/pub/epel/${::operatingsystemmajrelease}/${::architecture}"
$epel_enabled = '1'
$epel_gpgcheck = '1'
$epel_includepkgs = absent
$epel_exclude = absent

}

0 comments on commit 2e1233e

Please sign in to comment.