47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# File 'manifests/init.pp', line 47
class telegraf (
String $package_name = $telegraf::params::package_name,
String $ensure = $telegraf::params::ensure,
String $config_file = $telegraf::params::config_file,
String $config_file_owner = $telegraf::params::config_file_owner,
String $config_file_group = $telegraf::params::config_file_group,
Optional[Stdlib::Filemode] $config_file_mode = $telegraf::params::config_file_mode,
String $config_folder = $telegraf::params::config_folder,
Optional[Stdlib::Filemode] $config_folder_mode = $telegraf::params::config_folder_mode,
String $hostname = $telegraf::params::hostname,
Boolean $omit_hostname = $telegraf::params::omit_hostname,
String $interval = $telegraf::params::interval,
Boolean $round_interval = $telegraf::params::round_interval,
Integer $metric_batch_size = $telegraf::params::metric_batch_size,
Integer $metric_buffer_limit = $telegraf::params::metric_buffer_limit,
String $collection_jitter = $telegraf::params::collection_jitter,
String $flush_interval = $telegraf::params::flush_interval,
String $flush_jitter = $telegraf::params::flush_jitter,
String $precision = $telegraf::params::precision,
String $logfile = $telegraf::params::logfile,
String $logfile_rotation_interval = $telegraf::params::logfile_rotation_interval,
String $logfile_rotation_max_size = $telegraf::params::logfile_rotation_max_size,
Integer $logfile_rotation_max_archives = $telegraf::params::logfile_rotation_max_archives,
Boolean $debug = $telegraf::params::debug,
Boolean $quiet = $telegraf::params::quiet,
Hash $inputs = $telegraf::params::inputs,
Hash $outputs = $telegraf::params::outputs,
Hash $global_tags = $telegraf::params::global_tags,
Hash $processors = {},
Boolean $manage_service = $telegraf::params::manage_service,
Boolean $manage_repo = $telegraf::params::manage_repo,
Boolean $manage_archive = $telegraf::params::manage_archive,
Boolean $manage_user = $telegraf::params::manage_user,
Optional[String] $repo_location = $telegraf::params::repo_location,
Optional[String] $archive_location = $telegraf::params::archive_location,
Optional[String[1]] $archive_version = $telegraf::params::archive_version,
Optional[String] $archive_install_dir = $telegraf::params::archive_install_dir,
Boolean $purge_config_fragments = $telegraf::params::purge_config_fragments,
String $repo_type = $telegraf::params::repo_type,
String $windows_package_url = $telegraf::params::windows_package_url,
Boolean $service_enable = $telegraf::params::service_enable,
String $service_ensure = $telegraf::params::service_ensure,
Array $install_options = $telegraf::params::install_options,
) inherits telegraf::params {
$service_hasstatus = $telegraf::params::service_hasstatus
$service_restart = $telegraf::params::service_restart
$ensure_file = $ensure ? {
'absent' => 'absent',
default => 'file',
}
$ensure_status = $ensure ? {
'absent' => 'absent',
default => 'present',
}
contain telegraf::install
contain telegraf::config
contain telegraf::service
$processors.each |$processor, $attributes| {
telegraf::processor { $processor:
* => $attributes,
}
}
Class['telegraf::install'] -> Class['telegraf::config'] ~> Class['telegraf::service']
Class['telegraf::install'] ~> Class['telegraf::service']
}
|