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

This commit adds SSL-support for filebeat-input #295

Merged
merged 1 commit into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
# @param max_procs [Integer] The maximum number of CPUs that can be simultaneously used
# @param fields [Hash] Optional fields that should be added to each event output
# @param fields_under_root [Boolean] If set to true, custom fields are stored in the top level instead of under fields
# @param ssl [Hash] Optional fields set the ssl-configuration for input
# @param processors [Array] Processors that will be added. Commonly used to create processors using hiera.
# @param monitoring [Hash] The monitoring section of the configuration file.
# @param inputs [Hash] or [Array] Inputs that will be created. Commonly used to create inputs using hiera
Expand Down Expand Up @@ -93,6 +94,7 @@
Optional[Integer] $max_procs = $filebeat::params::max_procs,
Hash $fields = $filebeat::params::fields,
Boolean $fields_under_root = $filebeat::params::fields_under_root,
Hash $ssl = $filebeat::params::ssl,
Boolean $disable_config_test = $filebeat::params::disable_config_test,
Array $processors = [],
Optional[Hash] $monitoring = undef,
Expand Down
1 change: 1 addition & 0 deletions manifests/input.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
String $input_type = 'log',
Hash $fields = {},
Boolean $fields_under_root = $filebeat::fields_under_root,
Hash $ssl = {},
Optional[String] $ignore_older = undef,
Optional[String] $close_older = undef,
String $doc_type = 'log',
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
$enable_conf_modules = false
$fields = {}
$fields_under_root = false
$ssl = {}
$http = {}
$cloud = {}
$outputs = {}
Expand Down
6 changes: 6 additions & 0 deletions templates/input.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@
<%- end -%>
<%- end -%>
fields_under_root: <%= @fields_under_root %>
<%- if @ssl.length > 0 -%>
ssl:
<%- @ssl.each_pair do |k, v| -%>
<%= k %>: <%= v %>
<%- end -%>
<%- end -%>
<%- if @tags.length > 0 -%>
tags:
<%- @tags.each do |tag| -%>
Expand Down