Skip to content

Commit

Permalink
Adding attributes and changing network defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeseplus committed Aug 24, 2012
1 parent 2576220 commit 4902fc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ Lager
[Lager][4] is the logging framework used within Riak. It can also be used with erlang/OTP.


node['riak']['lager'][:handlers]['lager_console_backend']= :info
node['riak']['config']['lager']['crash_log'] = "/var/log/riak/crash.log".to_erl_string
node['riak']['config']['lager']['crash_log_date'] = "$D0".to_erl_string
node['riak']['config']['lager']['crash_log_msg_size'] = 65536
Expand Down
8 changes: 5 additions & 3 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

# vm.args
default['riak']['args']['-name'] = "riak@127.0.0.1"
default['riak']['args']['-name'] = "riak@#{node['ipaddress']}"
default['riak']['args']['-setcookie'] = "riak"
default['riak']['args']['+K'] = true
default['riak']['args']['+A'] = 64
Expand All @@ -41,12 +41,13 @@ class ::Array
default['riak']['config']['kernel']['inet_dist_listen_max'] = 7999

#riak_api
default['riak']['config']['riak_api']['pb_ip'] = "127.0.0.1".to_erl_string
default['riak']['config']['riak_api']['pb_ip'] = "#{node['ipaddress']}".to_erl_string
default['riak']['config']['riak_api']['pb_port'] = 8087

# riak_core
default['riak']['config']['riak_core']['ring_state_dir'] = "/var/lib/riak/ring".to_erl_string
default['riak']['config']['riak_core']['http']["127.0.0.1".to_erl_string] = 8098
default['riak']['config']['riak_core']['ring_creation_size'] = 64
default['riak']['config']['riak_core']['http']["#{node['ipaddress']}".to_erl_string] = 8098
default['riak']['config']['riak_core']['handoff_port'] = 8099
default['riak']['config']['riak_core']['dtrace_support'] = false
default['riak']['config']['riak_core']['platform_bin_dir'] = "/usr/sbin".to_erl_string
Expand Down Expand Up @@ -105,6 +106,7 @@ class ::Array

# sasl
default['riak']['config']['sasl']['sasl_error_logger'] = false
default['riak']['config']['sasl']['utc_log'] = true

# riak_control
default['riak']['config']['riak_control']['enabled'] = false
Expand Down

0 comments on commit 4902fc6

Please sign in to comment.