Fix missing yum_protocol variable in default attributes file
MODIFY
attributes/default.rb
attributes/default.rb
@@ -116,6 +116,14 @@ default['datadog']['aptrepo_dist'] = 'stable'
default['datadog']['yumrepo'] = nil # uses official repos by default
default['datadog']['yumrepo_suse'] = nil # uses official repos by default
+# Older versions of yum embed M2Crypto with SSL that doesn't support TLS1.2
+yum_protocol =
+ if node['platform_family'] == 'rhel' && node['platform_version'].to_i < 6
+ 'http'
+ else
+ 'https'
+ end
+
# NB: if you're not using the default repos and/or distributions, make sure
# to pin the version you're installing with node['datadog']['agent_version']
default['datadog']['installrepo'] = true

Fix missing yum_protocol variable in default attributes file