Skip to content

Commit

Permalink
Default to more restrictive permissions for cassandra thrift access
Browse files Browse the repository at this point in the history
  • Loading branch information
b committed Apr 2, 2010
1 parent 29dda73 commit 1f2b17a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cassandra/recipes/autoconf.rb
Expand Up @@ -57,8 +57,12 @@

listen_addr = "" ; thrift_addr = "" ; seeds = []
if node[:cloud]
if node[:cassandra][:public_access]
thrift_addr = node[:cloud][:public_ips].first
else
thrift_addr = node[:cloud][:private_ips].first
end
listen_addr = node[:cloud][:private_ips].first
thrift_addr = node[:cloud][:public_ips].first
seeds = search(:node, "cassandra_cluster_name:#{node[:cassandra][:cluster_name]} AND cassandra_seed:true").map do |n|
if n["cloud"]
n["cloud"]["private_ips"].first
Expand Down

0 comments on commit 1f2b17a

Please sign in to comment.