Puppet Class: datadog_agent::integrations::zk
- Inherits:
- datadog_agent::params
- Defined in:
- manifests/integrations/zk.pp
Overview
Class: datadog_agent::integrations::zk
This class will install the necessary configuration for the zk integration
See the sample zk.d/conf.yaml for all available configuration options github.com/DataDog/integrations-core/blob/master/zk/datadog_checks/zk/data/conf.yaml.example
Parameters:
$host:
The host zk is running on. Defaults to '127.0.0.1'
$port
The port zk is running on. Defaults to 2181
$tags
Optional array of tags
Sample Usage:
class { 'datadog_agent::integrations::zk' :
servers => [
{
'host' => 'localhost',
'port' => '2181',
'tags' => [],
},
{
'host' => 'localhost',
'port' => '2182',
'tags' => [],
},
]
}
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'manifests/integrations/zk.pp', line 33
class datadog_agent::integrations::zk (
Array $servers = [{ 'host' => 'localhost', 'port' => '2181' }]
) inherits datadog_agent::params {
require datadog_agent
$dst_dir = "${datadog_agent::params::conf_dir}/zk.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/zk.yaml.erb'),
require => Package[$datadog_agent::params::package_name],
notify => Service[$datadog_agent::params::service_name],
}
}
|