Sha256: 2c084409feefe0347e021cb775eca2632583d4642cd209b9d95531a76d648ffa

Contents?: true

Size: 312 Bytes

Versions: 25

Compression:

Stored size: 312 Bytes

Contents

<%= JSON.pretty_generate(agent_members.sort {|a,b| a['Name'] <=> b['Name']}.map do |m|
    {
        'Name'  => m['Name'],
        'Addr'  => m['Addr'],
        'Port'  => m['Port'],
        'Tags'  => m['Tags'],
        'state' => m.status # returns 'none', 'alive', 'leaving', 'left', 'failed'
    }
  end
) %>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
consul-templaterb-1.36.1 samples/members.json.erb
consul-templaterb-1.35.1 samples/members.json.erb
consul-templaterb-1.34.1 samples/members.json.erb
consul-templaterb-1.33.3 samples/members.json.erb
consul-templaterb-1.33.2 samples/members.json.erb
consul-templaterb-1.33.1 samples/members.json.erb
consul-templaterb-1.33.0 samples/members.json.erb
consul-templaterb-1.32.1 samples/members.json.erb
consul-templaterb-1.32.0 samples/members.json.erb
consul-templaterb-1.31.1 samples/members.json.erb
consul-templaterb-1.31.0 samples/members.json.erb
consul-templaterb-1.30.0 samples/members.json.erb
consul-templaterb-1.29.0 samples/members.json.erb
consul-templaterb-1.28.2 samples/members.json.erb
consul-templaterb-1.28.1 samples/members.json.erb
consul-templaterb-1.28.0 samples/members.json.erb
consul-templaterb-1.27.2 samples/members.json.erb
consul-templaterb-1.27.1 samples/members.json.erb
consul-templaterb-1.27.0 samples/members.json.erb
consul-templaterb-1.26.3 samples/members.json.erb