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

Forces ubuntu 14.04 on Chef 11 to use upstart #551

Merged
merged 2 commits into from
Mar 5, 2019

Conversation

rposborne
Copy link
Contributor

This addresses #542

@rposborne rposborne changed the title Adds a patch so that ubuntu 14.04 on Chef 11 will use upstart Forces ubuntu 14.04 on Chef 11 to use upstart Jul 21, 2018
Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

Thanks @rposborne for the fix, I left a couple of notes

@@ -105,6 +105,7 @@ def template_vars # rubocop:disable Metrics/AbcSize
service_provider = nil
if node['datadog']['agent6'] &&
(((node['platform'] == 'amazon' || node['platform_family'] == 'amazon') && node['platform_version'].to_i != 2) ||
(node['platform'] == 'ubuntu' && node['platform_version'].to_f == 14.04) ||
Copy link
Member

Choose a reason for hiding this comment

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

  • Unfortunately this logic is currently duplicated in https://github.com/DataDog/chef-datadog/blob/master/providers/monitor.rb (twice), so you also need to update it there.
  • Ubuntu switched to systemd in 15.04, what do you think of comparing with < 15.04 instead? (should work since we're comparing floats)

@olivielpeau olivielpeau added this to the 2.17.0 milestone Oct 23, 2018
@remeh remeh modified the milestones: 2.17.0, 3.0, 2.18.0 Feb 26, 2019
@remeh
Copy link
Contributor

remeh commented Mar 5, 2019

Thank you for your contribution @rposborne, I'm merging it and it will be part of release 2.18.0.

@remeh remeh merged commit 0cc4f6a into DataDog:master Mar 5, 2019
@rposborne
Copy link
Contributor Author

@remeh Thanks for cleaning up after me!!

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.

None yet

3 participants