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

Attribute for custom gem server 2 #413

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions attributes/default.rb
Expand Up @@ -268,3 +268,8 @@

# ddtrace ruby gem version
default['datadog']['ddtrace_gem_version'] = nil

# For custom gem servers on restricted networks
# This attribute only works on Chef >= 12.3
# Change false to the URL of your custom gem server
default['datadog']['gem_server'] = false
2 changes: 2 additions & 0 deletions recipes/dd-handler.rb
Expand Up @@ -34,6 +34,8 @@
version node['datadog']['chef_handler_version']
# Chef 12 introduced `compile_time` - remove when Chef 11 is EOL.
compile_time true if respond_to?(:compile_time)
clear_sources true if node['datadog']['gem_server']
source node['datadog']['gem_server'] if node['datadog']['gem_server']
end
require 'chef/handler/datadog'

Expand Down