cookbook 'chocolatey', '= 0.5.0'
chocolatey
(25) Versions
0.5.0
-
Follow60
Install Chocolatey on Windows
cookbook 'chocolatey', '= 0.5.0', :supermarket
knife supermarket install chocolatey
knife supermarket download chocolatey
Description
Install Chocolatey with the default recipe and manage packages with a handy resource/provider.
Requirements
Platform:
- Windows
- Chef 11.6 or greater
Cookbooks:
- windows (~> 1.31)
Notes
As of Chocolatey version
0.9.8.24
the install directory for Chocolatey has changed from C:\Chocolatey
to
C:\ProgramData\Chocolatey
.
More information can be gotten from the Chocolateywiki.
Attributes
All attributes below are pre-pended with node['chocolatey']
Attribute | Description | Type | Default |
---|---|---|---|
['url'] |
Chocolatey installation script URL | String | https://chocolatey.org/install.ps1 |
['upgrade'] |
Whether to upgrade Chocolatey if it's already installed | Boolean | true |
['install_vars']['chocolateyProxyLocation'] |
HTTPS proxy for Chocolatey install script | String | Chef::Config['https_proxy'] or ENV['https_proxy'] |
['install_vars']['chocolateyProxyUser'] |
Proxy user for authenticating proxies | String | nil |
['install_vars']['chocolateyProxyPassword'] |
Proxy user password | String | nil |
['install_vars']['chocolateyVersion'] |
Version of Chocolatey to install, e.g. '0.9.9.11' | String | nil (download latest version) |
['install_vars']['chocolateyDownloadUrl'] |
Chocolatey .nupkg file URL. Use this if you host an internal copy of the chocolatey.nupkg | String | nil (download from chocolatey.org) |
Recipes
- chocolatey::default
Resources
chocolatey
Actions
- install: Install a chocolatey package (default)
- remove: Uninstall a chocolatey package
- upgrade: Update a chocolatey package
Resource Properties
- package: package to manage (default name)
- source:
- version: The version of the package to use.
- args: arguments to the installation.
Examples
include_recipe 'chocolatey' %w{sysinternals 7zip notepadplusplus GoogleChrome Console2}.each do |pack| chocolatey pack end %w{bash openssh grep}.each do |pack| chocolatey pack do source 'cygwin' end end chocolatey 'wireshark' do version '1.12.6' action :install end chocolatey 'DotNet4.5' chocolatey 'PowerShell'
License and Maintainer
Maintainer:: Guilhem Lettron (guilhem@lettron.fr)
License:: Apache 2.0
Changelog for Chocolatey cookbook
v0.5.0 (2015-11-09)
- Refactored install script (and .kitchen.yml) to support installing Chocolatey in test-kitchen behind a proxy.
- Download
node['chocolatey']['Uri']
viaremote_file
resource instead of .net web client - Set
chocolateyProxyLocation
environment variable toChef::Config['https_proxy']
if one is set before chocolatey install - Changed helpers module namespacing from:
ChocolateyHelpers
toChocolatey::Helpers
- Add ChefSpec unit tests
- Add ServerSpec integration tests
- Gemfile: bump foodcritic to 5.0 and Berkshelf to 4.0
- Add ChefSpec matchers
v0.4.1 (2015-10-15)
- Adds example how to install package with version
- use the vanilla script resource to bypass 64bit interpreter builder introduced in Chef 12.5
v0.4.0 (2015-06-30)
- Refactor script to download Chocolatey install script
- Chocolatey install: add proxy support
- fix for 64-bit chocolatey installs
v0.3.0 (2015-04-20)
- Support for chocolatey >= 0.9.9
- Make package name case insensitive
v0.2.0 (2014-09-24)
- Allow spaces in the path to the "choco" command.
- Update tests to use Rakefile
- Support Chocolatey version 0.9.8.24+
- Support custom command line options when installing packages
v0.1.0 (2014-02-20)
- Fix and tests
v0.0.5 (2013-04-30)
- Initial release
Foodcritic Metric
0.5.0 passed this metric
0.5.0 passed this metric