inspec / train

Transport Interface to unify communication over SSH, WinRM, and friends.
Apache License 2.0
119 stars 87 forks source link

CHEF-6440(CHEF-7426): Adds audit log support #749

Closed Vasu1105 closed 10 months ago

Vasu1105 commented 11 months ago

Description

This PR adds the ability to configure the audit log option using train and if the audit log is enabled it generates the audit log files in the default location.

This includes the following changes

Test using irb

bundle exec irb -I lib
require 'train'
t = Train.create("local")
c = t.connection
c.run_command("whoami")

audit_log_location is a required parameter so any library or plugin using train to pass the audit log location be they want to enable the audit log.

Pending: dev-docs

Related Issue

Types of changes

Checklist: