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

Add macOS support #437

Merged
merged 5 commits into from
May 5, 2022
Merged

Add macOS support #437

merged 5 commits into from
May 5, 2022

Conversation

bkabrda
Copy link
Contributor

@bkabrda bkabrda commented Apr 28, 2022

This PR adds macOS support to our ansible role. Some notes:

  • DD Agent is configured to run as system-wide LaunchDaemon.
  • Due to the way the scripts in our dmg package work, the package will install a login item and start a user-specific LaunchAgent if (and only if) ansible_user is also currently logged in via GUI. There are tasks that handle this by deactivating the LaunchAgent and login item when this happens.
  • I refactored most of the Linux tasks to a separate file to be able to share them with macOS.
  • The user under which the DD Agent should run can be specified via datadog_macos_user and defaults to ansible_user.
  • It's possible to override the dmg download URL by specifying datadog_macos_download_url.

Huge thanks go to @lc-applause for sending the basis of this functionality!

@bkabrda bkabrda requested review from a team as code owners April 28, 2022 09:02
Copy link
Contributor

@alai97 alai97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for docs!

@bkabrda
Copy link
Contributor Author

bkabrda commented Apr 29, 2022

I added another commit to fix ansible-lint issues. For some reason, ansible-lint started complaining on files that weren't touched by this PR. Technically it would've been better if I did another PR to fix the issues, but I figured that this would be easier and avoid rebasing.

Copy link
Contributor

@albertvaka albertvaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments but LGTM.

README.md Outdated Show resolved Hide resolved
tasks/agent-macos.yml Show resolved Hide resolved
tasks/agent-macos.yml Outdated Show resolved Hide resolved
Slavek Kabrda and others added 2 commits May 5, 2022 10:27
Co-authored-by: Albert Vaca Cintora <[email protected]>
Co-authored-by: Albert Vaca Cintora <[email protected]>
@bkabrda bkabrda merged commit a553bfb into main May 5, 2022
@bkabrda bkabrda deleted the macos-support branch May 5, 2022 09: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.

3 participants