Sha256: 6fe27008890deb81bdc89e66fe90a31873c81a289d41e3ff8c471ba78b13f722

Contents?: true

Size: 651 Bytes

Versions: 13

Compression:

Stored size: 651 Bytes

Contents

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
<% ethernet_interfaces.each do |eth| %>
auto eth<%= eth[:num] %>
iface eth0 inet <%= eth[:type] %>
  <% if eth[:type] == 'static' %>
    address <%= eth[:ipaddr] %>
    netmask <%= eth[:netmask] %>
    gateway <%= eth[:gateway] %>
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers <%= eth[:dns1] %><%= ",#{eth[:dns2]}" if defined?(eth[:dns2]) %>
  <% end %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
deprec-1.2.0 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.2.1 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.2.2 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.2.3 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.3.0 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.3.1 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.4.1 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.4.2 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.5.0 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.6.0 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.7.0 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.7.1 lib/deprec/recipes/templates/interfaces.rhtml
deprec-1.5.1 lib/deprec/recipes/templates/interfaces.rhtml