blob: 623d1b65650f1bb30e333779ed8454c12be27284 [file] [log] [blame]
# Class: datadog_agent::integrations::kong
#
# This class will install the necessary configuration for the Kong integration
#
# Note: if you're Cassandra data-store is large in size the `/status` page may
# take a long time to return.
# <https://github.com/Mashape/kong/issues/1323>
#
# Parameters:
# $instances:
# Array of hashes for all Kong instances and associated tags. See example
#
# Sample Usage:
#
# class { 'datadog_agent::integrations::kong':
# instances => [
# {
# 'status_url' => http://localhost:8001/status/',
# },
# {
# 'status_url' => 'http://localhost:8001/status/',
# 'tags' => ['instance:foo'],
# },
# ],
# }
#
class datadog_agent::integrations::kong (
$instances = [
{
'status_url' => 'http://localhost:8001/status/',
'tags' => []
}
]
) inherits datadog_agent::params {
include datadog_agent
file { "${datadog_agent::params::conf_dir}/kong.yaml":
ensure => file,
owner => $datadog_agent::params::dd_user,
group => $datadog_agent::params::dd_group,
mode => '0644',
content => template('datadog_agent/agent-conf.d/kong.yaml.erb'),
require => Package[$datadog_agent::params::package_name],
notify => Service[$datadog_agent::params::service_name]
}
}