Changeset 452

Show
Ignore:
Timestamp:
04/17/08 18:51:16 (9 months ago)
Author:
mbailey
Message:

updated network templates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/deprec/templates/network/hostname.erb

    r200 r452  
    1 <%= hostname %> 
     1<%= network_hostname %> 
  • trunk/lib/deprec/templates/network/hosts.erb

    r249 r452  
    11127.0.0.1       localhost 
    2 127.0.1.1       <%= hostname %> 
     2127.0.1.1       <%= network_hostname %> 
  • trunk/lib/deprec/templates/network/interfaces.erb

    r200 r452  
    66iface lo inet loopback 
    77 
     8<% network_number_of_ports.to_i.times do |port| %> 
    89# The primary network interface 
    9 auto eth0 
    10 iface eth0 inet static 
    11         address <%= eth0_ip %> 
    12         netmask 255.255.254.0 
    13         broadcast 192.168.1.255 
    14         gateway 192.168.0.1 
    15         dns-nameservers 203.8.183.1 4.2.2.1 
     10auto <%= "eth#{port}" %> 
     11iface <%= "eth#{port}" %> inet static 
     12        address <%= network_interfaces[port][:address] %> 
     13        netmask <%= network_interfaces[port][:netmask] %> 
     14        broadcast <%= network_interfaces[port][:broadcast] %> 
     15        <%= "gateway #{network_gateway}" if port == 0 %> 
     16        <%= "dns-nameservers #{network_dns_nameservers}" if port == 0 %> 
    1617 
    17 auto eth1 
    18 iface eth1 inet static 
    19                 address <%= eth1_ip %> 
    20         netmask 255.255.255.0 
    21         broadcast 192.168.1.255 
    22         dns-nameservers 203.8.183.1 4.2.2.1 
     18<% end %>