-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added mail_dir attribute and moved component attributes to attributes… #209
added mail_dir attribute and moved component attributes to attributes… #209
Conversation
… folder from recipe file
fixed lint issues (my linter likes %w() instead. Not sure why amazon linux fails, but seems unrelated to change |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ekelson-bcove for your contribution and this improvement!
@@ -55,6 +55,10 @@ | |||
default['os-hardening']['packages']['auditd'] = 'audit' | |||
end | |||
|
|||
%w[packages limits login_defs minimize_access pam profile securetty].each do |cp| | |||
node.default['os-hardening']['components'][cp] = true | |||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for moving this block into attributes!
@@ -71,6 +75,7 @@ | |||
default['os-hardening']['auth']['pw_warn_age'] = 7 | |||
default['os-hardening']['auth']['retries'] = 5 | |||
default['os-hardening']['auth']['lockout_time'] = 600 # 10min | |||
default['os-hardening']['auth']['maildir'] = '/var/mail' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
… folder from recipe file