chocolatey_config Cookbook
Provides a chocolatey_config resource for managing Chocolatey configs.
Deprecation
This resource shipped in Chef 14.3 and as such this cookbook is no longer maintained. It will continue to function for users of Chef 13.0 - 14.2, but there will be no updates made.
Requirements
Platforms
- Windows 7
- Windows Server 2008 R2
- Windows 8, 8.1
- Windows Server 2012 (R1, R2)
- Windows Server 2016
Chef
- Chef 13+
Resources
chocolatey_config
Actions
:set
- Sets a Chocolatey config:unset
- Unsets a Chocolatey config
Properties
config_key
- Name property. The name of the config.value
- the value to set (required for :set action)
Examples
Add a new config
chocolatey_config 'cacheLocation' do
value 'c:\temp\choco'
end
Using a descriptive resource name and providing the config with config_key property
chocolatey_config 'Set the Chocolatey config path' do
config_key 'cacheLocation'
value 'c:\temp\choco'
end
Unset a config
chocolatey_config 'cacheLocation' do
action :unset
end
License & Authors
- Author:: Tim Smith([email protected])
Copyright 2018, Chef Software, Inc.
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.
`