-
Notifications
You must be signed in to change notification settings - Fork 260
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
Let the Windows installer set the correct rights on config files and directories. #588
Conversation
need to check: whether earlier versions of the cookbook work with agents v6 >= 6.11 (on Windows) |
I've tested it with versions <6.11 (such as 6.8.0) and it worked well 👍 |
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.
2 comments:
- What about the similar logic in our
datadog_monitor
provider?chef-datadog/providers/monitor.rb
Lines 13 to 17 in 0cc4f6a
if node['platform_family'] == 'windows' owner 'Administrators' rights :full_control, 'Administrators' inherits false else - I think there was a small misunderstanding on my earlier comment: I meant to ask if version
2.17.0
of the cookbook is able to successfully install a version of the Windows Agent running underdd-agent-user
. If not, it means that users trying to install such a Windows Agent version with older versions of the cookbook will run into issues, so we should make sure it's documented in a very obvious way (here + in the Agent changelog + any other docs we may provide; we can discuss this in chat/offline if needed)
|
c612ebc
to
4b0cf11
Compare
Please note that the CHANGELOG for release 2.18.0 has been updated accordingly: #589 |
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.
Left a few additional comments
The ddagentuser is only for Windows Agent v6.
The .MSI to setup the Agent on Windows will soon run the Agent in a custom user with less privileges (than Administrator).
This commit removes the permissions change on
datadog.yaml
on Windows to let the installer set it itself.I've tested that the Agent still runs while installing
6.8.0
and6.10.0
.Note that this PR doesn't change the behavior for the Agent 5.