Merged in oherrala/puppet/network-openbsd (pull request #39)
network, openbsd: Move options in OpenBSD to top of /etc/hostname.if so device can be created before using it, etc.
This commit is contained in:
commit
4d5be32073
1 changed files with 4 additions and 3 deletions
|
@ -1,9 +1,10 @@
|
|||
<% if @proto == 'dhcp' -%>
|
||||
dhcp NONE NONE NONE<% @options.each do |val| %> <%= val %><% end %>
|
||||
<%= @options.join("\n")+"\n" unless @options.empty? -%>
|
||||
<% if @proto == 'dhcp' %>
|
||||
dhcp NONE NONE NONE
|
||||
<% elsif @proto == 'none' -%>
|
||||
up
|
||||
<% else -%>
|
||||
inet <%= @ipaddr %> <%= @netmask %> NONE<% @options.each do |val| %> <%= val %><% end %>
|
||||
inet <%= @ipaddr %> <%= @netmask %> NONE
|
||||
<% end -%>
|
||||
<% if @ip6addr == 'auto' -%>
|
||||
rtsol
|
||||
|
|
Loading…
Add table
Reference in a new issue