#
# Author:: Benjamin Black (<b@b3k.us>), Sean Cribbs (<sean@basho.com>), Seth Thomas (<sthomas@basho.com>), and Hector Castro (<hector@basho.com>)
# Cookbook Name:: riak
#
# Copyright (c) 2014 Basho Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name              'riak'
maintainer        'Basho Technologies, Inc.'
maintainer_email  'riak@basho.com'
license           'Apache 2.0'
description       'Installs and configures Riak distributed data store'
version           '3.1.4'

recipe            'riak', 'Installs Riak from a package'
recipe            'riak::source', 'Installs Erlang and Riak from source'
recipe            'riak::java', 'Installs Java for Riak Search'
recipe            'riak::sysctl', 'Applies sysctl tunings for Riak'

depends 'apt', '>= 2.3'
depends 'build-essential'
depends 'erlang', '>= 1.5.2'
depends 'git'
depends 'java', '>= 1.28.0'
depends 'sysctl'
depends 'ulimit'
depends 'yum', '>= 3.4'
depends 'yum-epel'
depends 'packagecloud'
depends 'pkg_add'

%w{ubuntu debian centos redhat fedora amazon freebsd}.each do |os|
  supports os
end
