Skip to content

Commit

Permalink
add option to specify ec2 tag collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Mircea committed Dec 4, 2014
1 parent 5f8e261 commit fc785ae
Show file tree
Hide file tree
Showing 2 changed files with 8 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 @@ -33,6 +33,9 @@
# Add tags as override attributes in your role
default['datadog']['tags'] = ''

# Collect EC2 tags
default['datadog']['collect_ec2_tags'] = 'no'

# Autorestart agent
default['datadog']['autorestart'] = false

Expand Down
5 changes: 5 additions & 0 deletions templates/default/datadog.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ listen_port: <%= node['datadog']['agent_port'] %>
<% if node['datadog']['autorestart'] -%>
autorestart: <%= node['datadog']['autorestart'] %>
<% end -%>

tags: <%= node['datadog']['tags'] %>
<% if node['datadog']['collect_ec2_tags'] -%>
collect_ec2_tags: <%= node['datadog']['collect_ec2_tags'] %>
<% end -%>
<% if node['datadog']['web_proxy']['host'] -%>
proxy_host: <%= node['datadog']['web_proxy']['host'] %>
proxy_port: <%= node['datadog']['web_proxy']['port'] %>
Expand Down

0 comments on commit fc785ae

Please sign in to comment.