infochimps/cluster_chef — Issue #81: cassandra cookbook and related fixes
Author: pcn
Created: 2011-12-09 21:04:01+00:00
State: open

I needed to add this:

:commitlog_dir => { :uid => :user, :gid => :group, },
:saved_caches_dir => { :uid => :user, :gid => :group, },

to the top of standard_dirs.rb to get the cassandra server minimally functional. Is there supposed to be a way to indicate additional "STANDARD_DIRS" are necessary from within the recipe that's using it?

Also, in access.properties.erb the first line interpolated by chef needs to not try to iterate over @acls.keys.each_pair. It needs to look like this:

<%- @acls.each_pair do |keyspace, cfs| %>

The documentation for the format of the data bag has a ruby data structure. Could something like the following be added to clarify the structure if it's edited by hand?

# An example of the resulting json data looks like this:
# "TestCassandra": {
# "authentication": {
# "use_md5": true,
# "users": {
# "ab": "cd",
# "test": "testpass"
# }
# },
# "authority": {
# "keyspace": {
# "abc": {
# "rw": [
# "ab"
# ],
# "ro": [
# "test"
# ]
# },
# "_": {
# "rw": [
# "ab"
# ],
# "ro": [
# "test"
# ]
# }
# }
# }
# },