Skip to content

Commit

Permalink
Merge branch 'deprecate-default-broker-config'
Browse files Browse the repository at this point in the history
  • Loading branch information
mthssdrbrg committed Mar 31, 2017
2 parents 6c07a3f + 0bd2d22 commit ade6176
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/_defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
#

unless broker_attribute?(:broker, :id)
Chef::Log.warn('Default value for `broker.id` is deprecated and will be removed in the next major version')
node.default['kafka']['broker']['broker_id'] = node['ipaddress'].delete('.').to_i % 2**31
end

unless broker_attribute?(:port)
Chef::Log.warn('Default value for `port` is deprecated and will be removed in the next major version')
node.default['kafka']['broker']['port'] = 6667
end

Expand Down

0 comments on commit ade6176

Please sign in to comment.