# encoding: utf-8

name             'kafka'
maintainer       'Mathias Söderberg'
maintainer_email 'mths@sdrbrg.se'
license          'Apache 2.0'
description      'Installs and configures a Kafka broker'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version          '0.2.1'

recipe 'kafka::source', 'Downloads, compiles and installs Kafka from source releases'
recipe 'kafka::binary', 'Downloads, extracts and installs Kafka from binary releases'
recipe 'kafka::zookeeper', 'Setups standalone ZooKeeper instance using the ZooKeeper version that is bundled with Kafka'

recommends 'java', '~> 1.22'

%w(centos fedora debian ubuntu).each do |os|
  supports os
end

# encoding: utf-8

name             'kafka'
maintainer       'Mathias Söderberg'
maintainer_email 'mths@sdrbrg.se'
license          'Apache 2.0'
description      'Installs and configures a Kafka broker'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version          '0.2.1'

recipe 'kafka::source', 'Downloads, compiles and installs Kafka from source releases'
recipe 'kafka::binary', 'Downloads, extracts and installs Kafka from binary releases'
recipe 'kafka::zookeeper', 'Setups standalone ZooKeeper instance using the ZooKeeper version that is bundled with Kafka'

suggests 'java', '~> 1.22'

%w(centos fedora debian ubuntu).each do |os|
  supports os
end

Switch java recommendation to suggests
Switch java recommendation to suggests

This gets around a rather insane set of circumstances wherein Berkshelf
won't let you ignore recommends [1]. Basically, Berkshelf will always
download a recommends, but not a suggests, so if we downgrade this
keyword (which is of course meaningless in Chef terms), then we can
still appease Berkshelf but also let users know Java is a system
requirement.

[1] https://github.com/berkshelf/berkshelf/issues/895
