manifests/params.pp (30 lines of code) (raw):

# Class: datadog_agent::params # # This class contains the parameters for the Datadog module # # Parameters: # $api_key: # Your DataDog API Key. Please replace with your key value # $dd_url # The URL to the DataDog application. # # Actions: # # Requires: # # Sample Usage: # class datadog_agent::params { $agent5_enable = false $conf_dir = '/etc/dd-agent/conf.d' $conf6_dir = '/etc/datadog-agent/conf.d' $dd_user = 'dd-agent' $dd_group = 'root' $dd_groups = undef $package_name = 'datadog-agent' $service_name = 'datadog-agent' $dogapi_version = 'installed' $conf_dir_purge = false $apt_default_release = 'stable' $apm_default_enabled = false $process_default_enabled = false $process_default_scrub_args = true $process_default_custom_words = [] case $::operatingsystem { 'Ubuntu','Debian' : { $rubydev_package = 'ruby-dev' $agent5_default_repo = 'https://apt.datadoghq.com' $agent6_default_repo = 'https://apt.datadoghq.com' } 'RedHat','CentOS','Fedora','Amazon','Scientific' : { $rubydev_package = 'ruby-devel' $agent5_default_repo = "https://yum.datadoghq.com/rpm/${::architecture}/" $agent6_default_repo = "https://yum.datadoghq.com/stable/6/${::architecture}/" } default: { fail("Class[datadog_agent]: Unsupported operatingsystem: ${::operatingsystem}") } } }