Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage additional files #102

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions datadog/config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,17 @@ install_info_installed:
- template: jinja
- require:
- pkg: datadog-pkg

{% for filename, config in salt['pillar.get']('datadog:additional_config').items() %}
/etc/datadog-agent/{{ filename }}:
file.serialize:
- dataset: {{ config }}
- formatter: yaml
- user: dd-agent
- group: dd-agent
- mode: 600
- require:
- pkg: datadog-pkg
- watch_in:
- service: datadog-agent-service
{% endfor %}
15 changes: 14 additions & 1 deletion pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@ datadog:
api_key: aaaaaaaabbbbbbbbccccccccdddddddd
site: datadoghq.com
python_version: 2

additional_config:
system-probe.yaml:
network_config:
enabled: false
runtime_security_config:
enabled: true
fim_enabled: true
remote_configuration:
enabled: true
custom_sensitive_words:
- 'personal_key'
- '*token'
- 'sql*'
- '*pass*d*'
checks:
process:
config:
Expand Down