Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to use the archive module to also unzip the package #56

Merged
merged 2 commits into from
Feb 26, 2021

Conversation

dannygoulder
Copy link
Contributor

I've found that the CopyHere method can sometimes silently fail to extract the zip file on Windows. It fails consistently when Puppet runs as a domain user instead of LocalSystem.

Adding a parameter extract_method to the module to control whether to use the archive module or the current behaviour. Defaults to the current behaviour. Tests are updated but I didn't add context for the new parameter (since it just means there is no exec anymore) - I guess we could test that the correct parameters are being passed though.

Also took the opportunity to fix up the failing Ubuntu tests and update to version 1.18.1 of PDK.

All tests pass using the provided gitlab-ci.yml and using pdk test unit and I've performed manual acceptance tests on a Windows Server 2019 box

This reverts commit 38b70e4c1794998d33e628aa68fccaeade93dc8a.
Test copyhere

See merge request puppet/metricbeat!3
@dannygoulder
Copy link
Contributor Author

Fixes #57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants