Skip to content

Commit

Permalink
Add proxy for Yum repository (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedWhiteMiko authored and miketheman committed Apr 15, 2016
1 parent 4b5e9da commit aa8d799
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
default['datadog']['aptrepo'] = 'http://apt.datadoghq.com'
default['datadog']['aptrepo_dist'] = 'stable'
default['datadog']['yumrepo'] = "http://yum.datadoghq.com/rpm/#{architecture_map[node['kernel']['machine']]}/"
default['datadog']['yumrepo_proxy'] = nil
default['datadog']['yumrepo_proxy_username'] = nil
default['datadog']['yumrepo_proxy_password'] = nil
default['datadog']['windows_agent_url'] = 'https://s3.amazonaws.com/ddagent-windows-stable/'

# Values that differ on Windows
Expand Down
3 changes: 3 additions & 0 deletions recipes/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
name 'datadog'
description 'datadog'
url node['datadog']['yumrepo']
proxy node['datadog']['yumrepo_proxy']
proxy_username node['datadog']['yumrepo_proxy_username']
proxy_password node['datadog']['yumrepo_proxy_password']
# Older versions of yum embed M2Crypto with SSL that doesn't support TLS1.2
prefix = node['platform_version'].to_i < 6 ? 'http' : 'https'
gpgkey "#{prefix}://yum.datadoghq.com/DATADOG_RPM_KEY.public"
Expand Down

0 comments on commit aa8d799

Please sign in to comment.