Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


windev (15) Versions 0.4.0

Configures Windows

cookbook 'windev', '= 0.4.0', :supermarket
cookbook 'windev', '= 0.4.0'
knife supermarket install windev
knife supermarket download windev
Quality 0%

All-in-one Windows development environments

Build Status

One cookbook with recipes and resources for setting up a Windows development environment.

Why not use chocolatey?

Please do if it suits you!

There's also a convenience wrapper for chocolatey added to windev since 0.4.0.

Having said that, controlling the installation location is more obvious in windev. The idea is that in windev you choose the installer yourself so configuration is more prominent and it's easier to figure out the custom arguments required.



This recipe just sets up the local software cache. It is used by all recipes that install software.

The location of the local software is specified in the 'software_depot' attribute.

The default value for 'software_depot' is 'software', which will create the directory at the point of chef's execution.


{"software_depot": "software"}

You can define a node attribute 'cache' to specify packages to download and cache locally in software_depot.
'cache' is an array of hashes:

  "software_depot": "software",

This is a helper feature for downloading packages that are later manually installed (as is the case with unsigned drivers). Generally it is not needed if the installers are well behaved (but many are not).


The features recipe:

  • Creates a GodMode folder<sup>1</sup>
  • Deactivates the action center
  • Deactivates the Windows firewall

and uninstalls a list of Windows features provided in node['windows_features']['remove']


{"windows_features": {
    "remove": ["MediaPlayback","WindowsMediaPlayer","MediaCenter","TabletPCOC","FaxServicesClientPackage",


Installs Windows drivers using dpinst.

The way it works is that it expects a zip file with the driver files (the .inf and .cat file etc.) that also contains the dpinst utility. The LWRP is relatively smart and will match several versions of the dpinst filename (dpinst_amd64, dpinst_x64 etc.). It will also create an automation configuration (dpinst.xml) if one is not provided.

Optionally you can provide a certificate (add it to the files/default in the cookbook) to be added to the trusted publishers in the windows certificate store.

The certificate should either be a part of the driver package or provided in the cookbook's files.

#If no save_as is defined then expect the file relative to software_depot

This recipe is for the moment specific to 64bit Windows installations. For drivers whose publisher is untrusted you will need to include the publisher's certificate in the cookbook. It will not work at all with unsigned drivers


This recipe provides three ways for software installation: installer-driven, from a zip file or through chocolatey.

Installer driven

The installer_packages attribute expects an array of installer definitions.

Each installer definition is a hash with parameters:

  • name - Must match the name appearing in "Uninstall Programs" in the Control Panel.
  • source & save_as - The URL from where the installer can be downloaded and the filename for the downloaded content (relative to sofware_depot)
  • installer - if no cache is used (source & save_as are ommited) installer should be the name to the installer executable. Relative paths are relative to software_depot
  • version - The software version
  • options - command line options to pass to the installer
  • type - when "custom" then Chef will not try to guess the type and use the path options only.
  • timeout - Time in seconds to wait for the installer to finish. Default is 600

The installers need to be capable of operating unattended (silent or quiet mode).

  "installer_packages": [
#This entry will download the installer and cache it locally
    {"name":"Microsoft .NET Framework 4.5",
      "version":"4.5.50709","options":"/passive /norestart","type":"custom"
#This entry expects the installer at software/VisualStudio2013/vs_professional.exe and will fail if it is not present
    {"name":"Microsoft Visual Studio Professional 2013 with Update 4",
      "version":"12.0.31101","type":"custom","timeout":60000,"options":"/Passive /LOG C:\\VS_2013_U3.log /NoRestart /NoWeb /NoRefresh /CustomInstallPath C:\\tools\\VisualStudio2013\\"

Zip files

The zip_packages attribute expects an array of zip definitions.

Each zip definition is a hash with parameters:

  • archive - defines the filename for the package if no cache is used (source & save_as are ommited). Relative to sofware_depot
  • source & save_as - The URL from where the package can be downloaded and the filename for the downloaded content (relative to sofware_depot)
  • unpack - location to unpack the archive
  • version - the version of the software


  "zip_packages": [
####This entry downloads the file and caches it in software_depot before unpacking
####This entry expects the package in the software_depot directory


The choco_packages attribute expects an array of chocolatey package definitions.

Each package definition is a hash with parameters:

  • name - name of the package
  • source
  • version - version of the package to use
  • args - arguments to the installation

All parameters but name are optional. Chocolatey will only be installed if choco_packages is not empty


Provides an easy way to define environment variables in JSON configurations.

Provide an environment attribute that points to a hash of 'name'->'value' for the environment variables you want to define.



Resource providers

The cookbook offers two LWRPs:

cache_package will download a package from a URL to a local directory. It is used heavily in the [packages](recipes/packages.rb) recipe

install_driver performs Windows driver installations. As an example look in the [drivers](recipes/drivers.rb) recipe

<sup>1</sup>GodMode is a special Windows folder providing access to all configuration options

Dependent cookbooks

windows ~>1.38.2
chocolatey ~>0.4.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.


Chocolatey integration


Fixed a bug in the caching of installers


Conformed to foodcritic warnings
Removed some obsolete cruft


Depot directory creation is now recursive
Fixed the license metadata


Removed the SSL recipe
Added the environment recipe
Bugfixes in the handling of empty node attributes for cache,packages and drivers


Caching and driver installation implemented as LWRPs
Package installation uses caching and packages are downloaded only when not installed and not already cached


Initial release of windev

Foodcritic Metric

0.4.0 failed this metric

FC009: Resource attribute not recognised: /tmp/cook/c27c5c16abf04796c057de29/windev/recipes/packages.rb:24