Skip to content

Commit

Permalink
[puppet] Collect facter, directory listing, and version output
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Bryn M. Reeves <[email protected]>
  • Loading branch information
TurboTurtle authored and bmr-cymru committed Mar 21, 2019
1 parent 47cd099 commit 2535fd3
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion sos/plugins/puppet.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,23 @@ def setup(self):
"/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):
Expand Down

0 comments on commit 2535fd3

Please sign in to comment.