michaelklishin/cassandra-chef-cookbook — pull request #127 by AddictedCS (2014-10-20 18:56:19+00:00)
Title: Creating /etc/cassandra/conf directory before yaml file gets copied into it. In case it is not created, script execution will fail.

Below script fails in case if _conf_dir_ is not created before it gets executed.
```ruby
%w(cassandra.yaml cassandra-env.sh).each do |f|
template File.join(node.cassandra.conf_dir, f) do
cookbook node.cassandra.templates_cookbook
source "#{f}.erb"
owner node.cassandra.user
group node.cassandra.group
mode "0644"
notifies :restart, "service[cassandra]", :delayed if node.cassandra.notify_restart
end
end
```