Add more secure sudo configuration
Also update the sudo cookbook
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
|
||||
This file is used to list changes made in each version of the sudo cookbook.
|
||||
|
||||
## 3.5.0 (2017-05-16)
|
||||
|
||||
- Add sudo package management to resource
|
||||
|
||||
## 3.4.0 (2017-04-26)
|
||||
|
||||
- Add lwrp support for only env_keep add/subtract
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -113,6 +113,10 @@ end
|
||||
action :install do
|
||||
target = "#{node['authorization']['sudo']['prefix']}/sudoers.d/"
|
||||
|
||||
package 'sudo' do
|
||||
not_if 'which sudo'
|
||||
end
|
||||
|
||||
unless ::File.exist?(target)
|
||||
sudoers_dir = directory target
|
||||
sudoers_dir.run_action(:create)
|
||||
|
||||
Reference in New Issue
Block a user