aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/report/plugins/ssh.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/sos/report/plugins/ssh.py b/sos/report/plugins/ssh.py
index 0fe5dd4e..67a02290 100644
--- a/sos/report/plugins/ssh.py
+++ b/sos/report/plugins/ssh.py
@@ -8,7 +8,7 @@
#
# See the LICENSE file in the source distribution for further information.
-from sos.report.plugins import Plugin, IndependentPlugin
+from sos.report.plugins import Plugin, IndependentPlugin, PluginOpt
class Ssh(Plugin, IndependentPlugin):
@@ -18,6 +18,12 @@ class Ssh(Plugin, IndependentPlugin):
plugin_name = 'ssh'
profiles = ('services', 'security', 'system', 'identity')
+ option_list = [
+ PluginOpt('userconfs', default=True, val_type=str,
+ desc=('Changes whether module will '
+ 'collect user .ssh configs'))
+ ]
+
def setup(self):
self.add_file_tags({
@@ -34,7 +40,10 @@ class Ssh(Plugin, IndependentPlugin):
self.add_copy_spec(sshcfgs)
self.included_configs(sshcfgs)
- self.user_ssh_files_permissions()
+
+ # If userconfs option is set to False, skips this
+ if self.get_option('userconfs'):
+ self.user_ssh_files_permissions()
def included_configs(self, sshcfgs):
# Read configs for any includes and copy those