-
Notifications
You must be signed in to change notification settings - Fork 177
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
WIP : Add chocolatey support #237
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d88ad72
Add chocolatey support
hdep dc8eeea
Debug
hdep aedb19c
use local variable
hdep 9041e51
Debug choco
hdep 2b9e8f6
Debug choco
hdep 2a3aab7
Debug choco
hdep 9dd5b27
Revert "Debug choco"
hdep c98705b
Debug choco
hdep 187a7c7
debug
hdep 6a4be17
debug
hdep e9ba086
debug
hdep f839301
debug
hdep a96d606
debug
hdep a19bea8
manage chocolatey path
hdep 0fe7af1
fix syntax
hdep 04b7bf2
fix package provider
hdep a12c8d2
use real_package_provider
hdep 99c6a04
use real_package_provider
hdep 9ddbe46
fix style
hdep 65bce6d
manage real_package_provider
hdep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,8 +105,13 @@ | |
} | ||
|
||
'Windows' : { | ||
$cmd_install_dir = regsubst($filebeat::install_dir, '/', '\\', 'G') | ||
$filebeat_path = join([$cmd_install_dir, 'Filebeat', 'filebeat.exe'], '\\') | ||
if $filebeat::real_package_provider == 'exec' { | ||
$cmd_install_dir = regsubst($filebeat::install_dir, '/', '\\', 'G') | ||
$filebeat_path = join([$cmd_install_dir, 'Filebeat', 'filebeat.exe'], '\\') | ||
} | ||
else { | ||
$filebeat_path = 'C:/ProgramData/chocolatey/lib/filebeat/tools/filebeat.exe' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "$env:ChocolateyInstall/bin/filebeat.exe" (needs ruby code for environment) - also I'm pointing to the shim in the bin folder, but you can stick with lib if you want. |
||
} | ||
|
||
$validate_cmd = ($filebeat::disable_config_test or $skip_validation) ? { | ||
true => undef, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# to manage filebeat installation on OpenBSD | ||
class filebeat::install::openbsd { | ||
package {'filebeat': | ||
package { $filebeat::package_name: | ||
ensure => $filebeat::package_ensure, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, I would expect this to use exec by default as one of the params.
$filebeat::params::package_provider
, but I can see why maybe not drop it into the params since it would not be platform agnosticThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I want exec by default and chocolatey as an option. Not sure what I can do here ? I want to let the choice to the user. what do you recommend ?