blob: 206e3f846f008a1fda353e610088346100283876 [file] [log] [blame]
# Class: datadog_agent::integrations::marathon
#
# This class will install the necessary configuration for the Marathon integration
#
# Parameters:
# $url:
# The URL for Marathon
#
# Sample Usage:
#
# class { 'datadog_agent::integrations::marathon' :
# url => "http://localhost:8080"
# }
#
class datadog_agent::integrations::marathon(
$marathon_timeout = 5,
$url = 'http://localhost:8080'
) inherits datadog_agent::params {
include datadog_agent
file { "${datadog_agent::params::conf_dir}/marathon.yaml":
ensure => file,
owner => $datadog_agent::params::dd_user,
group => $datadog_agent::params::dd_group,
mode => '0644',
content => template('datadog_agent/agent-conf.d/marathon.yaml.erb'),
require => Package[$datadog_agent::params::package_name],
notify => Service[$datadog_agent::params::service_name]
}
}