


choco list -lo -r -y | % | Out-File Install.ps1 It’s a oneliner that loops the installed Chocolatey apps via the “choco list” command and generates a list of strings. We set Chocolatey as the provider, so we can ensure the software is removed, installed, stays up to date, is a particular version, or hold a package on a version.Ahh, I have always enjoyed meta programming, so when I was thinking about how to get my Chocolatey apps from one PC to another, the choice was easy: A small Powershell command to create a Powershell script to install my apps somewhere else. Alternatively, you can have a local URL (a file sitting on an HTTP server).īelow is the anatomy of a package resource in Puppet. We can see in this manifest that we can simply include Chocolatey, and the default reaches out to to pull down the latest version of the package. Make sure Chocolatey is installed using one of the following commands: include chocolatey Now, let’s look at the Puppet Chocolatey module in action. You can download the Chocolatey module for Puppet on the Puppet Forge. It allows Open Source Puppet and Puppet Enterprise users to quickly and easily install, configure, and start delivering packages with Chocolatey.

There is a Puppet-supported module for Chocolatey for Windows for use as a package provider within Puppet. How to Configure the Chocolatey Windows Package Manager with Puppet

Chocolatey takes advantage of PowerShell automation to turn complex tasks into simple function calls. It works with runtime binaries, zips and existing installer technologies like MSI, NSIS and InnoSetup. Chocolatey lets you manage all aspects of Windows software: installation, configuration, upgrading, and uninstalling.
