Comments (2)
The workaround until the provider handles this correctly is listed above.
To reiterate:
If you need the previous behavior, be sure to disable the feature
usePackageExitCodes
or use the--ignore-package-exit-codes
switch in your choco commands.
You can add this to install_options
or set the feature.
It's preferred to set the feature. You can do that with this:
$_choco_exe_path = "c:\\ProgramData\\chocolatey\\bin\\choco.exe"
# lint:ignore:80chars
exec { "chocolatey_usePackageExitCodes_disable":
path => $::path,
command => "${_choco_exe_path} feature disable -n usePackageExitCodes",
unless => "cmd.exe /c ${_choco_exe_path} feature list -r | findstr /B /I /C:\"[ ] usePackageExitCodes\"",
}
# lint:endignore
This may need a bit of tweaking, but it will be about what you need.
from puppet-chocolatey.
This was released as part of puppetlabs/chocolatey in 2.0.0. Will retroactively apply it back to this.
from puppet-chocolatey.
Related Issues (20)
- Support feature list changes in v0.9.10+ HOT 1
- AutoUninstaller runs every time in 0.9.9.x HOT 13
- Choco_install_path facter HOT 1
- Exec[chocolatey_autouninstaller_enable] always runs because unless command don't work HOT 4
- [Feature request]Ability to set features for chocolatey via variables HOT 24
- Problem installing chocolatey with proxy HOT 1
- InstallChocolatey.ps1 doest look at system proxy-bypasslist when downloading choco from url HOT 1
- AutoUninstaller ensure runs every time in 0.10.x HOT 6
- Can't make it to work HOT 9
- Chocolateysource priority behaves different on different Windows versions HOT 1
- How I overcame SSL handshake issues HOT 3
- Problems with ensuring proper version to be passed as parameter. HOT 12
- Execution Policy and puppet HOT 1
- allow downgrade should work HOT 3
- Module dependency upgrade HOT 2
- chocolateyversion - bad parsing (to_s) for versioning HOT 4
- Puppet agent don't apply my own chocolatey module HOT 2
- Hard coded 7z url defeats proxies HOT 8
- Powershell 5.1 workaround (can't install chocolatey using chocolatey-chocolatey 1.2.6) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-chocolatey.