Allow users to run custom scripts before starting dd-agent#115
Allow users to run custom scripts before starting dd-agent#115apeschel wants to merge 2 commits intoDataDog:masterfrom
Conversation
* Replaces tabs with spaces * Uses heredoc to generate supervisor.conf
This commit adds the ability for users to run their own scripts before dd-agent is brought up. This change uses https://github.com/docker-library/mysql as a reference.
|
Thanks @apeschel |
|
@remh I would like to be able to put a config template into the /etc/dd-agent/conf.d/mysql.yaml and fill in the password data via an environment variable. Something like this: |
|
This might be useful for users who need to decrypt things like usernames/passwords/certificates before the dd-agent runs. |
|
Will this be necessary with agent6? Won't it support env variables on the config or would it be only for the core agent? But I think it would be a big miss if we can't have the support of env variables directly in the integration config (so directly as a PR in dd-agent instead of just here) IMHO. |
This script fixes some white-space issues and adds the ability to run custom scripts before the entrypoint starts dd-agent.
Uses https://github.com/docker-library/mysql as a reference.