[amazon] Read `amazon` as 'rhel' in agent_version attribute
To stay consistent with rhel and fedora
MODIFY
attributes/default.rb
attributes/default.rb
@@ -145,7 +145,7 @@ end
# Agent Version
# Default of `nil` will install latest version. On Windows, this will also upgrade to latest
# This attribute accepts either a `string` or `hash` with the key as platform_name and value of package version
-# In the case of fedora use platform_name of rhel
+# In the case of fedora and amazon linux, use platform_name of rhel
# Example:
# default['datadog']['agent_version'] = {
# 'rhel' => '5.9.0-1',

MODIFY
recipes/_install-linux.rb
recipes/_install-linux.rb
@@ -23,7 +23,7 @@ include_recipe 'datadog::repository' if node['datadog']['installrepo']
dd_agent_version =
if node['datadog']['agent_version'].respond_to?(:each_pair)
case node['platform_family']
- when 'rhel', 'fedora'
+ when 'rhel', 'fedora', 'amazon'
node['datadog']['agent_version']['rhel']
else
node['datadog']['agent_version'][node['platform_family']]

[amazon] Read `amazon` as 'rhel' in agent_version attribute

To stay consistent with rhel and fedora