Details
-
Bug
-
Status: Open
-
Low
-
Resolution: Unresolved
-
None
-
None
-
Windows 10
-
Modules
-
Needs Assessment
-
Needs Assessment
Description
Basic Info
Module Version: 4.0.0
Puppet Version: 6.7.2
OS Name/Version: Windows 10 1903
Desired Behavior: When I uninstall a package manually that was installed via puppet-chocolatey, I'd expect that puppet-chocolatey picks up on this and reinstalls it on the next run.
Actual Behavior:
When I uninstall a package manually that was installed via puppet-chocolatey and I re-run puppet, puppet says everything is fine - even though the package is no longer installed.
I'm seeing this issue with the following puppet code:
include chocolatey
|
|
package { 'vscode': |
ensure => installed, |
provider => 'chocolatey', |
}
|
Now, when I (accidentally) uninstall Visual Studio Code through Windows' Settings -> Apps and re-run puppet, puppet won't reinstall VSCode.
I'm guessing this is because when manually uninstalling VSCode, it remains "registered" in Chocolatey (i.e. choco list --local-only).
While I understand that you shouldn't manually uninstall packages that were installed via Chocolatey, I still think the current behavior breaks the promise (expected behavior) of package in Puppet - in that one would expect that package re-installs uninstalled packages.
Attachments
Issue Links
- is duplicated by
-
PA-2766 Puppet Agent doesn't detect chocolatey managed package's software removal from Windows Programs and Features
-
- Closed
-