https://github.com/voss2o0o/wingetpgk
Puppet Module with Type and Provider to install Software via Winget
https://github.com/voss2o0o/wingetpgk
puppet puppet-module winget
Last synced: 2 months ago
JSON representation
Puppet Module with Type and Provider to install Software via Winget
- Host: GitHub
- URL: https://github.com/voss2o0o/wingetpgk
- Owner: VoSs2o0o
- License: apache-2.0
- Created: 2023-05-29T14:46:13.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-31T22:34:03.000Z (about 2 years ago)
- Last Synced: 2025-03-26T01:13:02.977Z (3 months ago)
- Topics: puppet, puppet-module, winget
- Language: Ruby
- Homepage: https://forge.puppet.com/modules/voss2000/wingetpkg/readme
- Size: 24.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# WinGet
This Module contains a Resource and Provider to install Software via Winget.
## Usage
Simply use the Resource like this:
```
wingetpkg {'Microsoft.PowerToys':
ensure => present,
version => 'latest',
}
```The title of the Resource is the id of the Winget package
## Setup
Of course you will need Windows for that, and an installed and working Winget-Command.
Maybe you can install it on older Versions, but Winget is includes in Windows since
Windows 10 1709 (Build 16299). You can download and install it manually via
[Github Releases]https://github.com/microsoft/winget-cli/releases).
## Reference### Params:
The following Params exists:ensure => :present, :installed, :absent
version => or 'latest'### Optional:
fastupgrade => (default: 'yes')
Use this Param with 'no' to turn of the Upgrade-Command of WinGet. This makes sence e.g. for
the "Visual C Redistibutables", which creates dublicates on update, and confuses Winget.
If this happens, please uninstall the doubled version manually, andd try it again.
Also some Packages reports an incompatible installer for upgrade.
With this Option you have a workaround.```
wingetpkg {'Microsoft.VCRedist.2013.x64':
ensure => present,
version => 'latest',
fastupgrade: 'no'
}
```## Limitations
Please keep in mind that winget is not really stable, but usable. I have seen a lot of problems
related to winget when i have developed this Module.## misc
You have a little more insight how it works, if you use:
```
puppet resource wingetpkg
```to view the currently detected packages, and of course:
```
puppet apply --debug
```to view some debug messages