setup datadog agent on each host.
- set agent version to 7
This commit is contained in:
31
ansible-5/roles/datadog.datadog/templates/datadog.conf.j2
Normal file
31
ansible-5/roles/datadog.datadog/templates/datadog.conf.j2
Normal file
@@ -0,0 +1,31 @@
|
||||
# Managed by Ansible
|
||||
|
||||
[Main]
|
||||
|
||||
{% if datadog_config["dd_url"] is not defined -%}
|
||||
dd_url: {{ datadog_url | default('https://app.datadoghq.com') }}
|
||||
{% endif %}
|
||||
|
||||
{% if datadog_config["api_key"] is not defined -%}
|
||||
api_key: {{ datadog_api_key | default('youshouldsetthis') }}
|
||||
{% endif %}
|
||||
|
||||
{% if datadog_config["use_mount"] is not defined -%}
|
||||
use_mount: {{ datadog_use_mount | default('no') }}
|
||||
{% endif %}
|
||||
|
||||
{# These variables are free-style, passed through a hash -#}
|
||||
{% if datadog_config -%}
|
||||
{% for key, value in datadog_config | dictsort -%}
|
||||
{{ key }}: {{ value }}
|
||||
{% endfor -%}
|
||||
{% endif %}
|
||||
|
||||
{% if datadog_config_ex is defined -%}
|
||||
{% for section, keyvals in datadog_config_ex | dictsort %}
|
||||
[{{ section }}]
|
||||
{% for key, value in keyvals | dictsort -%}
|
||||
{{ key }}: {{ value }}
|
||||
{% endfor -%}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user