Skip to content

Instantly share code, notes, and snippets.

@atomic-penguin
Forked from nathanaschbacher/myRole
Created June 8, 2012 19:42
Show Gist options
  • Save atomic-penguin/2897766 to your computer and use it in GitHub Desktop.
Save atomic-penguin/2897766 to your computer and use it in GitHub Desktop.
Trying to override defaults in Riak chef cookbook for Riak Control user/pass
[
{bitcask, [
{data_root, "/var/lib/riak/bitcask"}
]},
{eleveldb, [
{data_root, "/var/lib/riak/leveldb"},
{max_open_files, 50}
]},
{kernel, [
{inet_dist_listen_max, 7999},
{inet_dist_listen_min, 6000}
]},
{lager, [
{crash_log, "/var/log/riak/crash.log"},
{crash_log_count, 5},
{crash_log_date, "$D0"},
{crash_log_msg_size, 65536},
{crash_log_size, 10485760},
{error_logger_redirect, true},
{handlers, [
{lager_console_backend, info},
{lager_file_backend, [
{"/var/log/riak/console.log", info, 10485760, "$D0", 5},
{"/var/log/riak/error.log", error, 10485760, "$D0", 5}
]}
]}
]},
{merge_index, [
{buffer_rollover_size, 1048576},
{data_root, "/var/lib/riak/merge_index"},
{data_root_2i, "/var/lib/riak/merge_index_2i"},
{max_compact_segments, 20}
]},
{riak_control, [
{admin, true},
{auth, userlist},
{enabled, true},
{userlist, [
{"user", "pass", "MyUsername", "MyPassword"}
]}
]},
{riak_core, [
{cluster_name, "default"},
{handoff_port, 8099},
{http, [{"10.101.6.189", 8098}]},
{platform_bin_dir, "/usr/sbin"},
{platform_data_dir, "/var/lib/riak"},
{platform_etc_dir, "/etc/riak"},
{platform_lib_dir, "/usr/lib64/riak"},
{ring_state_dir, "/var/lib/riak/ring"}
]},
{riak_err, [
{fmt_max_bytes, 65536},
{term_max_size, 65536}
]},
{riak_kv, [
{hook_js_vm_count, 2},
{http_url_encoding, "on"},
{js_max_vm_mem, 8},
{js_thread_stack, 16},
{legacy_keylisting, false},
{legacy_stats, true},
{map_js_vm_count, 8},
{mapred_2i_pipe, true},
{mapred_name, "mapred"},
{mapred_queue_dir, "/var/lib/riak/mr_queue"},
{mapred_system, pipe},
{multi_backend, [
{be_default, riak_kv_eleveldb_backend, [
{data_root, "/var/lib/riak/leveldb"},
{max_open_files, 50}
]},
{be_blocks, riak_kv_bitcask_backend, [
{data_root, "/var/lib/riak/bitcask"}
]}
]},
{multi_backend_default, be_default},
{multi_backend_prefix_list, [
{<<"0b:">>, be_blocks}
]},
{pb_ip, "10.101.6.189"},
{pb_port, 8087},
{raw_name, "riak"},
{reduce_js_vm_count, 6},
{riak_kv_stat, true},
{storage_backend, riak_cs_kv_multi_backend},
{vnode_vclocks, true}
]},
{riak_search, [
{enabled, false}
]},
{riak_sysmon, [
{busy_dist_port, true},
{busy_port, true},
{gc_ms_limit, 100},
{heap_word_limit, 40111000},
{port_limit, 2},
{process_limit, 30}
]},
{sasl, [
{errlog_type, error},
{error_logger_mf_dir, "/var/log/riak/sasl"},
{error_logger_mf_maxbytes, 10485760},
{error_logger_mf_maxfiles, 5},
{sasl_error_logger, false}
]}
].
name "riak"
override_attributes "riak" => {
"control" => {
"enabled" => true,
"userlist" => { "default_user" => ["MyUsername", "MyPassword"]}
}
}
run_list "recipe[riak]"
@janpieper
Copy link

@atomic-penguin I've created an issue for this problem (see basho/riak-chef-cookbook#51). Do you know how to get rid of the default user?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment