Chef cookbook to install chocolatey and packages on Windows
Clone or download
tas50 Release 2.0.1
Signed-off-by: Tim Smith <tsmith@chef.io>
Latest commit bc1c2a5 Jul 3, 2018

README.md

chocolatey Cookbook

Cookbook Version Build Status

Install Chocolatey with the default recipe.

Requirements

Platform

  • Windows

Chef

  • 12.7 or greater

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
['upgrade'] Whether to upgrade Chocolatey if it's already installed Boolean false
['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 https://chocolatey.org/api/v2/package/chocolatey (download from chocolatey.org)
['install_vars']['chocolateyUseWindowsCompression'] To use built-in compression instead of 7zip (requires additional download) set to true String nil (use 7zip)

Recipes

  • chocolatey::default - installs Chocolatey

License and Maintainer

Maintainer:: Guilhem Lettron (guilhem@lettron.fr)

License:: Apache 2.0