Skip to content

Commit

Permalink
Merge pull request #90 from DataDog/additional-options
Browse files Browse the repository at this point in the history
Add some additional options to the service_config hash.
  • Loading branch information
johnbellone committed Dec 11, 2014
2 parents f5e9021 + a037896 commit 71eb1c6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions recipes/_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@
service_config['client_addr'] = node['consul']['client_addr']
end

additional_options = ['recursor', 'statsd_addr', 'leave_on_terminate', 'disable_remote_exec', 'acl_datacenter', 'acl_token', 'acl_default_policy', 'acl_down_policy', 'acl_master_token']

additional_options.each do |option|
if node['consul'][option]
service_config[option] = node['consul'][option]
end
end

copy_params = [
:bind_addr, :datacenter, :domain, :log_level, :node_name, :advertise_addr, :ports, :enable_syslog
]
Expand Down

0 comments on commit 71eb1c6

Please sign in to comment.