Skip to content

Instantly share code, notes, and snippets.

@jweiss
Created February 10, 2011 09:48
Show Gist options
  • Select an option

  • Save jweiss/820209 to your computer and use it in GitHub Desktop.

Select an option

Save jweiss/820209 to your computer and use it in GitHub Desktop.
<% memcache_servers = node[:scalarium][:roles][:memcached][:instances].values %>
<% memcache_server_ips = memcache_servers.map{|instance| instance[:private_ip]} %>
<% (['development', 'production'] + [@environment]).uniq.each do |env| -%>
<%= env %>:
host: <%= @memcached[:host] %>
hosts: <%= memcache_server_ips %>
port: <%= @memcached[:port] %>
<% end -%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment