Puppet Class: datadog_agent::integrations::cacti
- Inherits:
- datadog_agent::params
- Defined in:
- manifests/integrations/cacti.pp
Overview
Class: datadog_agent::integrations::cacti
This class will install the necessary configuration for the cacti integration
See the sample cacti.d/conf.yaml for all available configuration options. github.com/DataDog/integrations-core/blob/master/cacti/datadog_checks/cacti/data/conf.yaml.example
Parameters:
$host:
The host cacti MySQL db is running on
$user
The cacti MySQL password
$password
The cacti MySQL sb port.
$path
The path to the cacti rrd directory e.g. /var/lib/cacti/rra/
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 |
# File 'manifests/integrations/cacti.pp', line 18
class datadog_agent::integrations::cacti (
String $mysql_host = 'localhost',
String $mysql_user = 'cacti',
Optional[Any] $mysql_password = undef,
String $rrd_path = '/var/lib/cacti/rra/',
) inherits datadog_agent::params {
require datadog_agent
$dst_dir = "${datadog_agent::params::conf_dir}/cacti.d"
file { $dst_dir:
ensure => directory,
owner => $datadog_agent::dd_user,
group => $datadog_agent::params::dd_group,
mode => $datadog_agent::params::permissions_directory,
require => Package[$datadog_agent::params::package_name],
notify => Service[$datadog_agent::params::service_name],
}
$dst = "${dst_dir}/conf.yaml"
file { $dst:
ensure => file,
owner => $datadog_agent::dd_user,
group => $datadog_agent::params::dd_group,
mode => $datadog_agent::params::permissions_protected_file,
content => template('datadog_agent/agent-conf.d/cacti.yaml.erb'),
require => Package[$datadog_agent::params::package_name],
notify => Service[$datadog_agent::params::service_name],
}
}
|