** Member of the rismoney suite of Windows Puppet Providers **
This is a Puppet package provider for chocolatey, which is like apt-get, but for Windows.
Install this module via any of these approaches:
- puppet forge
- git-submodule (tutorial)
- librarian-puppet
- r10k
Use it like this:
class rich::packages {
$pkg = 'notepadplusplus'
package { $pkg:
ensure => installed,
provider => 'chocolatey',
install_options => ['-pre','-params','-mypkgparam'],
source => 'https://myfeed.example.com/api/v2',
}
}
If you want to set this provider as the site-wide default,
add to your site.pp
:
if $::kernel == windows {
# default package provider
Package { provider => chocolatey }
}
- this is versionable so
ensure => '1.0'
works - this is upgradeable
- supports
latest
(checks upstream),absent
(uninstall) - supports
install_options
for pre-release, other cli
See CONTRIBUTING.md