Skip to content

nicolasvan/chocolatey-cookbook

 
 

Repository files navigation

Support making Chocolatey better! Kickstarter - The Chocolatey Experience

Cookbook Version Build Status

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

  • node['chocolatey']['Uri'] - Defaults to "https://chocolatey.org/install.ps1".
  • node['chocolatey']['upgrade'] - Defaults to "true".

Recipes

  • chocolatey::default

Resources

chocolatey

Actions

  • install: Install a chocolatey package (default)
  • remove: Uninstall a chocolatey package
  • upgrade: Update a chocolatey package

Attribute Parameters

  • 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 'DotNet4.5'

chocolatey 'PowerShell'

License and Maintainer

Maintainer:: Guilhem Lettron ([email protected])

License:: Apache 2.0

About

Chef cookbook to install chocolatey and packages on Windows

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%