Permalink
Browse files

Default to more restrictive permissions for cassandra thrift access

  • Loading branch information...
1 parent 29dda73 commit 1f2b17a0f8cfd0e6c08dd3f3b6031135569cf68d @b committed Apr 2, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 cassandra/recipes/autoconf.rb
@@ -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

0 comments on commit 1f2b17a

Please sign in to comment.