Skip to content

Instantly share code, notes, and snippets.

@dstrelau
Created January 30, 2012 19:02
Show Gist options
  • Save dstrelau/1706000 to your computer and use it in GitHub Desktop.
Save dstrelau/1706000 to your computer and use it in GitHub Desktop.
if ['app_master', 'app'].include?(node[:instance_role])
node[:applications].each do |app, data|
template "/data/#{app}/shared/config/redis.yml"do
source 'redis.yml.erb'
owner node[:owner_name]
group node[:owner_name]
mode 0655
backup 0
variables({
:environment => node[:environment][:framework_env],
:uri => "redis://#{node[:db_host]}"
})
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment