Skip to content

Instantly share code, notes, and snippets.

@spheromak
Created October 28, 2010 09:42
Show Gist options
  • Save spheromak/651025 to your computer and use it in GitHub Desktop.
Save spheromak/651025 to your computer and use it in GitHub Desktop.
cluster.conf.erb
#
# Managed by chef ocfs2 recipe
# Local edits will be squashed
#
<% count = 0 %>
<% @members.sort.each do |host, ip| %>
node:
ip_port = 7777
ip_address = <%= ip %>
number = <%= count %>
name = <%= host %>
cluster = <%= @cluster %>
<% count += 1 -%>
<% end %>
cluster:
node_count = <%= @members.size %>
name = <%= @cluster %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment