include_recipe "cassandra::datastax"

%w(cassandra.yaml cassandra-env.sh cassandra-topology.properties).each do |f|
  template File.join(node["cassandra"]["conf_dir"], f) do
    source "#{f}.erb"
    owner node["cassandra"]["user"]
    group node["cassandra"]["user"]
    mode  0644
    # notifies :restart, resources(:service => "cassandra")
  end
end
