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

Conversation

mbrannigan
Copy link

What does this PR do?

This PR adds an additional section in pillar to produce additional config files in /etc/datadog-agent. You include the contents of these yaml files into the datadog:additional_config pillar and salt will serialize that pillar data into the appropriate file.

Motivation

I need to manage system-probe.yaml as well as security-agent.yaml in the /etc/datadog-agent directory and the formula didn't have a facility to do this.

Additional Notes

Describe your test plan

If you have the additional_config pillar structured like the below example, the formula will create /etc/datadog-agent/system-probe.yaml with the specified settings in place.

datadog:
  config:
    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*'

@mbrannigan mbrannigan requested review from a team as code owners March 5, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant