From 11df91df5fc93450117c462fb55c0c24eba4f6ff Mon Sep 17 00:00:00 2001
From: Jonathan Lent <jlent@stanford.edu>
Date: Tue, 31 Mar 2015 09:08:04 -0700
Subject: [PATCH] small edits to yumtools::plugin

---
 NEWS                         |  4 ++++
 manifests/yumtools/plugin.pp | 10 +---------
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/NEWS b/NEWS
index 453da6e..26e0b62 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+UNRELEASED (2015-03-??)
+
+    [yumtools] minor fix for RHEL5 and yum plugins (jlent)
+
 UNRELEASED (2015-03-??)
 
     [cron] Add parameter to base::cron to allow anacron package to be
diff --git a/manifests/yumtools/plugin.pp b/manifests/yumtools/plugin.pp
index 43abe74..5ca0450 100644
--- a/manifests/yumtools/plugin.pp
+++ b/manifests/yumtools/plugin.pp
@@ -21,7 +21,7 @@ define base::yumtools::plugin (
   $pkg_name   = ''
 ) {
   
-  $pkg_prefix = $libmajdistrelease ? {
+  $pkg_prefix = $lsbmajdistrelease ? {
       '5'     => 'yum',
       default => 'yum-plugin',
   }
@@ -34,12 +34,4 @@ define base::yumtools::plugin (
     ensure  => $ensure,
   }
 
-  if ! defined(Augeas['yum.conf_plugins_enable']) {
-    augeas { 'yum.conf_plugins_enable':
-      lens    => 'Yum.lns',
-      incl    => '/etc/yum.conf',
-      context => '/files/etc/yum.conf',
-      changes => 'set main/plugins 1',
-    }
-  }
 }
-- 
GitLab