Adding support for amazon linux based images
MODIFY
recipes/_install-linux.rb
recipes/_install-linux.rb
@@ -60,7 +60,7 @@ else
action node['datadog']['agent_package_action'] # default is :install
options '--force-yes' if node['datadog']['agent_allow_downgrade']
end
- when 'rhel', 'fedora'
+ when 'rhel', 'fedora', 'amazon'
yum_package 'datadog-agent' do
version dd_agent_version
retries package_retries unless package_retries.nil?

MODIFY
recipes/repository.rb
recipes/repository.rb
@@ -42,7 +42,7 @@ when 'debian'
action :add
end
-when 'rhel', 'fedora'
+when 'rhel', 'fedora', 'amazon'
# Import new RPM key
if node['datadog']['yumrepo_gpgkey_new']
# gnupg is required to check the downloaded key's fingerprint

Adding support for amazon linux based images (#448)

Signed-off-by: Noel Georgi <noel.georgi@reancloud.com>