-
Notifications
You must be signed in to change notification settings - Fork 225
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
Disable all datadog agent v6 services together #153
Conversation
It seems to be a relevant change, any news about merging this ? |
@pdecat Do you think you could make services list configurable? ie. I don't need to run |
Hi @filiptepper, making the services list configurable would be interesting too but out of the scope of this PR as far as I can tell. Indeed, the current state without this PR is that the Anyway, I glanced at doing what you asked and it seems way more far reaching than I thought.
cf. https://github.com/DataDog/ansible-datadog#example-playbooks
cf. https://github.com/DataDog/ansible-datadog#process-agent
cf. https://github.com/DataDog/datadog-process-agent/tree/master/config#environment-variables In my opinion, that should be addressed in another issue/PR. |
@pdecat Thanks, that helped a lot! |
83db9b2
to
984be82
Compare
Hi @hush-hush, could you please take a look at this one? |
984be82
to
71d2ee0
Compare
Rebased following the renaming of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @pdecat,
Thanks you for this PR and sorry for the long time it took us to review it.
I added a comment let me know what you think,
…atadog-agent is not started by systemd as a dependency of datadog-agent-process and datadog-agent-trace services
71d2ee0
to
557529b
Compare
Thanks @hush-hush! I've renamed the PR to reflect that this only changes the disabling of services. |
This ensures that when
datadog_enabled
is set tono
, thedatadog-agent
unit is disabled and not started by systemd as a dependency of thedatadog-agent-process
anddatadog-agent-trace
units.Without this change, the
datadog-agent
unit, while disabled, is started on boot:This is tested on debian stretch with ansible 2.6.3 and systemd 232.