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

Error executing action configure on resource 'security_policy[Local Policy]' #8

Closed
chris-rock opened this issue Mar 13, 2017 · 0 comments

Comments

@chris-rock
Copy link
Collaborator

chris-rock commented Mar 13, 2017

I try to run

security_policy 'Local Policy' do
  action :configure
end

but I get the following error:

================================================================================
Error executing action `configure` on resource 'security_policy[Local Policy]'
================================================================================

RuntimeError
------------
Property `template` of `security_policy[Local Policy]` was incorrectly passed a block.  Possible property-resource collision.  To call a resource named `template` either rename the property or else use `declare_resource(:template, ...)`

Resource Declaration:
---------------------
# In C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/windows-hardening/recipes/security_policy.rb

12: security_policy 'Local Policy' do
13:   action :configure
14: end

Compiled Resource:
------------------
# Declared in C:/Users/vagrant/AppData/Local/Temp/kitchen/cache/cookbooks/windows-hardening/recipes/security_policy.rb:12:in `from_file'

security_policy("Local Policy") do
 action [:configure]
 retries 0
 retry_delay 2
 default_guard_interpreter :default
 declared_type :security_policy
 cookbook_name "windows-hardening"
 recipe_name "security_policy"
 template "C:\\Windows\\security\\templates\\chefNewPolicy.inf"
 database "C:\\Windows\\security\\database\\chef.sdb"
 log_location "C:\\Windows\\security\\logs\\chef-secedit.log"
end

Platform:
---------
x64-mingw32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant