blob: 97ab08612e1f6c58d80628a466887f7fe870ea6e [file] [log] [blame]
# Class: datadog_agent::integrations::zk
#
# This class will install the necessary configuration for the zk integration
#
# Parameters:
# $host:
# The host zk is running on. Defaults to '127.0.0.1'
# $port
# The zk password for the datadog user. Defaults to 27017
# $tags
# Optional array of tags
#
# Sample Usage:
#
# class { 'datadog_agent::integrations::zk' :
# servers => [
# {
# 'host' => 'localhost',
# 'port' => '2181',
# 'tags' => [],
# },
# {
# 'host' => 'localhost',
# 'port' => '2182',
# 'tags' => [],
# },
# ]
# }
#
class datadog_agent::integrations::zk(
$servers = [{'host' => 'localhost', 'port' => '2181'}]
) inherits datadog_agent::params {
validate_array($servers)
file { "${conf_dir}/zk.yaml":
ensure => file,
owner => $datadog_agent::params::dd_user,
group => $datadog_agent::params::dd_group,
mode => 0600,
content => template('datadog_agent/agent-conf.d/zk.yaml.erb'),
require => Package[$datadog_agent::params::package_name],
notify => Service[$datadog_agent::params::service_name]
}
}