Sha256: 51a87762667c3ebace7c83b4bfac73ddf47bea927b55267b581892059952ab8a

Contents?: true

Size: 505 Bytes

Versions: 4

Compression:

Stored size: 505 Bytes

Contents

# Auto config dropped off by chef!

# Always setup loopback
auto lo
iface lo inet loopback

<% node[:lxc][:interfaces][@container].each do |net_set| -%>
<% if net_set[:auto] -%>
auto <%= net_set[:device] %>
<% end -%>
<% if net_set[:dynamic] -%>
iface <%= net_set[:device] %> inet dhcp
<% else -%>
iface <%= net_set[:device] %> inet static
  address <%= net_set[:address] %>
<% if net_set[:gateway] -%>
  gateway <%= net_set[:gateway] %>
<% end -%>
  netmask <%= net_set[:netmask] %>
<% end -%>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vagabond-0.2.0 lib/vagabond/cookbooks/lxc/templates/default/interface.erb
vagabond-0.1.4 lib/vagabond/cookbooks/lxc/templates/default/interface.erb
vagabond-0.1.2 lib/vagabond/cookbooks/lxc/templates/default/interface.erb
vagabond-0.1.0 lib/vagabond/cookbooks/lxc/templates/default/interface.erb