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

Fixes Windows issue where filebeats service is reinstalled on each run #156

Merged
merged 1 commit into from
Apr 1, 2020

Conversation

dluxem
Copy link
Contributor

@dluxem dluxem commented Mar 21, 2019

Hello,

This pull request fixes issue #134 . Instead of having the powershell_script 'install filebeat as service' resource run every time, it only runs after windows_zipfile completes.

Testing shows this fixes the problem of the Windows service being stopped/deleted on every chef-client run. I'm also able to perform version upgrades with this code.

One note, this cookbook is affected by the issues below where versions of filebeat 6.4.0 and later cannot be uncompressed with the windows_zipfile resource. I did not try to resolve that issue here, so specifying version 6.3.2 or earlier is needed to test.

chef-boneyard/windows#459
elastic/beats#9259

@vkhatri vkhatri merged commit a0292dc into vkhatri:master Apr 1, 2020
@vkhatri
Copy link
Owner

vkhatri commented Apr 1, 2020

@dluxem 👍

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