homeblogpackage management windows gets even better chocolatey

Package Management on Windows gets even better with Chocolatey

Many of you are already using Chocolatey, the definitive package manager to install and configure software in your Windows environments. You’ve asked for a supported Chocolatey module for a while, and this is our first step towards providing one. Today, we’re announcing the release of a new Chocolatey module; this first version of the Puppet Chocolatey module is a public preview, to gather feedback. We plan to release the new Puppet Chocolatey module as a fully supported module in September.

The Chocolatey module allows you to install and configure Chocolatey and manage Chocolatey packages. With the Chocolatey package provider you get the benefit of:

  • Managing software across all of your Puppet-enabled Windows nodes.

  • Managing the installation of Chocolatey itself on those nodes without requiring any external network access.

  • Completely configuring Chocolatey and managing sources for packages. Some configuration features are in the public preview release, and all will be supported by the time the module reaches Supported status.

Our new Chocolatey module includes the following features:

  • Installing Packages - Make Chocolatey your default package provider and install over 4,000 community-maintained packages.

  • New provider for Chocolatey sources - Specify a folder, CIFS share, NuGet HTTP OData feed, or even a full Package Gallery as a source for your packages.

  • New provider for Chocolatey features - Enable or disable Chocolatey features to auto-confirm prompts, use a private download cache, or even perform virus checking on downloaded files (some features may require licensed versions of Chocolatey).

To get started with the Chocolatey module, first install the module:

Next, create a manifest called chocolatey.pp and add the following to it:

Don’t want to use the community installation of Chocolatey? Install it from your own Chocolatey nupkg instead:

Now, apply the manifest:

Your output may look similar to what you see below:

That’s it!

We’re looking for your feedback on the Chocolatey module. If you have an issue, create a ticket, or if you just want to chat, find us on Slack in the #windows channel.

Learn more