Provides a chocolatey_source resource for managing Chocolatey sources.
NOTE: This resource shipped in Chef 14.3. This cookbook will be deprecated in April, 2019 when Chef 15.0 is released.
- Windows 7
- Windows Server 2008 R2
- Windows 8, 8.1
- Windows Server 2012 (R1, R2)
- Windows Server 2016
- Chef 12+
:add
- Add a new Chocolatey source:remove
- Remove an existing Chocolatey source
source_name
- Name property. The name of the source.source
- the path to the source (filesystem or URL)bypass_proxy
- should the system proxy be bypassed for this source (default: false)priority
- the priority level for the source (default: 0)
Add a new source
chocolatey_source 'my_corp_source' do
source 'http://mycorp.dmz/choco_path/'
end
Using a descriptive resource name and providing the source with source_name property
chocolatey_source 'Add my_corp Chocolatey Source' do
source_name 'my_corp_source'
source 'http://mycorp.dmz/choco_path/'
end
Removing a source
chocolatey_source 'my_corp_source' do
action :remove
end
- Author:: Tim Smith(tsmith@chef.io)
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.
`