-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathforwarder.pp
More file actions
50 lines (49 loc) · 1.77 KB
/
forwarder.pp
File metadata and controls
50 lines (49 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# @summary Class for managing the Splunk forwarder in a monitoring setup
#
# @param password_hash The password hash for the forwarder. This parameter is required.
#
# @param version The version of the Splunk forwarder. Defaults to '7.2.4'.
#
# @param build The build identifier. Defaults to '8a94541dcfac'.
#
# @param deploymentserver The deployment server URL. Defaults to undef.
#
# @param seed_password Whether to seed the password. Defaults to true.
#
# @param forwarder_output Additional output configuration as a hash. Defaults to an empty hash.
#
# @param log_keep_count Number of log files to keep. Defaults to 5.
#
# @param log_max_file_size_b Maximum size in bytes for log files. Defaults to 25000000.
#
# @param enable Enable or disable the forwarder. Defaults to false.
#
# @param noop_value No-operation mode value. Defaults to undef.
#
# @groups settings enable, noop_value
#
# @groups authentication password_hash, seed_password
#
# @groups package_config version, build
#
# @groups connection deploymentserver, forwarder_output
#
# @groups logging log_keep_count, log_max_file_size_b
#
class common::monitor::splunk::forwarder (
String[1] $password_hash,
Eit_types::Version $version = '7.2.4',
Optional[String] $build = '8a94541dcfac',
Stdlib::HTTPUrl $deploymentserver = undef,
Boolean $seed_password = true,
Hash $forwarder_output = {},
Integer $log_keep_count = 5,
Eit_types::Bytes $log_max_file_size_b = 25000000,
Boolean $enable = false,
Boolean $manage = false,
Eit_types::Noop_Value $noop_value = undef,
) {
if $manage {
contain profile::collector::splunk::forwarder
}
}