cookbook 'windows-security-policy', '~> 0.3.9'
windows-security-policy (5) Versions 0.3.9 Follow2
Configures Windows security policy
cookbook 'windows-security-policy', '~> 0.3.9', :supermarket
knife supermarket install windows-security-policy
knife supermarket download windows-security-policy
Windows Security Policy Helper Cookbook
Provides a helper security policy resource, and template with attributes for managing your Windows local security and security databases.
Requirements
Platforms
- Windows Server 2012 (R1, R2)
Chef
- Chef 12.1+
Resources
security_policy
This resource makes use of the secedit.exe tool.
Actions
-
:configure
- Applies configuration from a template to an existing SDB. -
:export
- Exports SDB settings to the local filesystem. -
:import
- Imports from a template into an SDB- can create a new SDB in the process.
Properties
-
policy_template
- Path to the template on the filesystem. -
database
- The security database (*.sdb) you wish to affect. -
log_location
- Location to write logs to.
Examples
Configure an existing security database.
security_policy 'Local Policy' do policy_template 'C:\Windows\security\templates\chefNewPolicy.inf' database 'C:\Windows\security\database\chef.sdb' action :configure end
Recipes
The following recipes are available in this cookbook.
default
Unused.
template
This recipe is used to create a template that can be imported using the security_policy resource to configure a security database. All of the accepted settings are attributes in this cookbook.
Usage
Place an explicit dependency on this cookbook (using depends in the cookbook's metadata.rb) from any cookbook where you would like to use the Windows-specific resources/providers that ship with this cookbook.
depends 'windows-security-policy'
To Do
- Tests
- Testing on other Windows platforms
License & Authors
- Author:: Joe Gardiner (joe@chef.io)
- Contributor:: Christoph Hartmann (chartmann@chef.io)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Windows Security Policy
v0.3.9 (2018-06-01)
- fixed typo in :import #28
v0.3.8 (2018-06-01)
- Fixed security_policy property calls
v0.3.7 (2017-06-12)
- Added default action to custom resource
- Fixing unnecessary string interpolation
- Added standard license format to metadata
v0.3.6 (Unreleased)
- Fix path in template and database location attributes #20
- Fix template recipe as node attribute is not in brackets #18
- Add initial appveyor file #16
v0.3.3 (2017-03-16)
- Prepared README for publishing on chef supermarket
Collaborator Number Metric
0.3.9 passed this metric
Contributing File Metric
0.3.9 passed this metric
Foodcritic Metric
0.3.9 passed this metric
No Binaries Metric
0.3.9 failed this metric
Failure: Cookbook should not contain binaries. Found:
windows-security-policy/templates/default/policy.inf.erb
Testing File Metric
0.3.9 passed this metric
Version Tag Metric
0.3.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.3.9 passed this metric
0.3.9 passed this metric
Foodcritic Metric
0.3.9 passed this metric
No Binaries Metric
0.3.9 failed this metric
Failure: Cookbook should not contain binaries. Found:
windows-security-policy/templates/default/policy.inf.erb
Testing File Metric
0.3.9 passed this metric
Version Tag Metric
0.3.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.3.9 passed this metric
0.3.9 failed this metric
Failure: Cookbook should not contain binaries. Found:
windows-security-policy/templates/default/policy.inf.erb
Testing File Metric
0.3.9 passed this metric
Version Tag Metric
0.3.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.3.9 passed this metric
0.3.9 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number