diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2018-12-26 17:39:30 -0500 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-21 16:23:12 +0000 |
commit | 2535fd316558ecd79bc391bc5bd9212c7e9cd53a (patch) | |
tree | 5fdf2da122fba53c44a3b1ae3356ce0061218f58 | |
parent | 47cd09931bf0e3dae5dd1debcc757e05ea3bc553 (diff) | |
download | sos-2535fd316558ecd79bc391bc5bd9212c7e9cd53a.tar.gz |
[puppet] Collect facter, directory listing, and version output
Adds collection of 'facter' and the puppet version in use.
Additionally collect directory listings for puppet module dirs.
Related: #1525
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/puppet.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sos/plugins/puppet.py b/sos/plugins/puppet.py index dedb7ae6..cdf37f2c 100644 --- a/sos/plugins/puppet.py +++ b/sos/plugins/puppet.py @@ -24,7 +24,23 @@ class Puppet(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin): "/etc/puppet/*.conf", "/etc/puppet/rack/*", "/etc/puppet/manifests/*", - "/var/log/puppet/*.log", + "/etc/puppet/ssl/ca/inventory.txt", + "/var/log/puppet/*.log*", + "/etc/puppetlabs/puppet/*.conf", + "/etc/puppetlabs/puppetserver/conf.d/*.conf", + "/etc/puppetlabs/puppet/rack/*", + "/etc/puppetlabs/puppet/manifests/*", + "/etc/puppetlabs/puppet/ssl/ca/inventory.txt", + "/var/log/puppetlabs/puppetserver/*.log*", + "/var/lib/puppetlabs/puppet/ssl/ca/inventory.txt", + "/var/lib/puppet/ssl/ca/inventory.txt" + ]) + + self.add_cmd_output([ + 'facter', + 'puppet --version', + 'ls -lanR /etc/puppet/modules', + 'ls -lanR /etc/puppetlabs/code/modules' ]) def postproc(self): |