Skip to content
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

Updated properties in security_policy for client 14.x #26

Merged
merged 1 commit into from
Jun 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
## Windows Security Policy

v0.3.8 (2018-06-01)
--------------------------------
- Fixed security_policy property calls


v0.3.7 (2017-06-12)
--------------------------------
- Added default action to custom resource
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
license 'Apache-2.0'
description 'Configures Windows security policy'
long_description 'A helper cookbook that allows you to use attributes and custom resources to manage your local security policy on Windows.'
version '0.3.7'
version '0.3.8'
supports 'windows'
issues_url 'https://github.com/grdnrio/windows-security-policy/issues' if respond_to?(:issues_url)
source_url 'https://github.com/grdnrio/windows-security-policy' if respond_to?(:source_url)
Expand Down
10 changes: 5 additions & 5 deletions resources/security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

action :configure do
if node['platform'] == 'windows'
template "#{policy_template}" do
template new_resource.policy_template do
source 'policy.inf.erb'
cookbook 'windows-security-policy'
action :create
end

execute 'Configure security database' do
command "Secedit /configure /db #{database} /cfg #{policy_template} /log #{log_location}"
command "Secedit /configure /db #{new_resource.database} /cfg #{new_resource.policy_template} /log #{new_resource.log_location}"
live_stream true
action :run
end
Expand All @@ -27,7 +27,7 @@
action :export do
if node['platform'] == 'windows'
execute 'Export security database to inf file' do
command "Secedit /export /db #{database} /cfg #{policy_template} /log #{log_location}"
command "Secedit /export /db #{new_resource.database} /cfg #{new_resource.policy_template} /log #{new_resource.log_location}"
live_stream true
action :run
end
Expand All @@ -38,13 +38,13 @@

action :import do
if node['platform'] == 'windows'
template "#{template}" do
template new_resource.policy_template do
source 'policy.inf.erb'
action :create
end

execute 'Import and create security database' do
command "Secedit /import /db #{database} /cfg #{policy_template} /log #{log_location} /overwrite"
command "Secedit /import /db #{new_resource.database} /cfg #{new_resource.policy_template} /log #{new_resource.new_resource.log_location} /overwrite"
live_stream true
action :run
end
Expand Down