Skip to content

Commit

Permalink
Add a case for riak_kv_multi_backend in the default attributes that s…
Browse files Browse the repository at this point in the history
…ets up

a Bitcask and eLevelDB backend.
  • Loading branch information
hectcastro committed Jun 5, 2013
1 parent b534bea commit ed5ca5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ class ::Array
default['riak']['config']['bitcask']['data_root'] = "#{platform_data_dir}/bitcask".to_erl_string
when "riak_kv_eleveldb_backend"
default['riak']['config']['eleveldb']['data_root'] = "#{platform_data_dir}/leveldb".to_erl_string
when "riak_kv_multi_backend"
default['riak']['config']['riak_kv']['multi_backend_default'] = "bitcask_mult"
bitcask_mult = ["bitcask_mult", "riak_kv_bitcask_backend", {"data_root" => "#{platform_data_dir}/bitcask".to_erl_string}]
eleveldb_mult = ["eleveldb_mult", "riak_kv_eleveldb_backend", {"data_root" => "#{platform_data_dir}/leveldb".to_erl_string}]
default['riak']['config']['riak_kv']['multi_backend'] = [bitcask_mult.to_erl_tuple, eleveldb_mult.to_erl_tuple]
when "riak_cs_kv_multi_backend"
default['riak']['cs_version'] = "1.3.1"
if node['platform_family'] == "rhel" && node['kernel']['machine'] == "x86_64"
Expand Down

0 comments on commit ed5ca5a

Please sign in to comment.