aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2011-02-24 20:07:47 +0000
committerpcarrier <pcarrier@ef72aa8b-4018-0410-8976-d6e080ef94d8>2011-02-24 20:07:47 +0000
commit67c976fe5fb72fc5dcf5f0896e3881d3936ea0e0 (patch)
tree2f0dcc231b28b62d3e8c17067af94373ef9c9acb
parent4bdf9bdc28dc82c59603195228456ffed996c85e (diff)
downloadsos-67c976fe5fb72fc5dcf5f0896e3881d3936ea0e0.tar.gz
[plugins] yum.py: added candlepin certs
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@1090 ef72aa8b-4018-0410-8976-d6e080ef94d8
-rw-r--r--sos/plugins/yum.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/sos/plugins/yum.py b/sos/plugins/yum.py
index 3e35aaa3..41dc268d 100644
--- a/sos/plugins/yum.py
+++ b/sos/plugins/yum.py
@@ -37,6 +37,8 @@ class yum(sos.plugintools.PluginBase):
"information and can cause rpm conflicts.")
def setup(self):
+ rhelver = self.policy().rhelVersion()
+
# Pull all yum related information
self.addCopySpecs([
"/etc/yum",
@@ -44,6 +46,13 @@ class yum(sos.plugintools.PluginBase):
"/etc/yum.conf",
"/var/log/yum.log"])
+ # candlepin info
+ self.addForbiddenPath("/etc/pki/entitlements/key.pem")
+ self.addCopySpecs([
+ "/etc/pki/product/*.pem",
+ "/etc/pki/consumer/cert.pem",
+ "/etc/pki/entitlements/*.pem"])
+
if self.getOption("yumlist"):
# Get a list of channels the machine is subscribed to.
self.collectExtOutput("/bin/echo \"repo list\" | /usr/bin/yum shell")