From 2e1233ef4a03d30e64791be60a5ded724cdf1234 Mon Sep 17 00:00:00 2001 From: Jeff Sheltren Date: Mon, 3 Mar 2014 15:37:34 -0800 Subject: [PATCH] Add more class parameters to epel class --- manifests/epel.pp | 18 ++++++++++++------ manifests/params.pp | 5 +++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/manifests/epel.pp b/manifests/epel.pp index 5d70971..9612b87 100644 --- a/manifests/epel.pp +++ b/manifests/epel.pp @@ -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}": @@ -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}"], } } diff --git a/manifests/params.pp b/manifests/params.pp index b3b0d7e..3239c73 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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 }