Revision 7b966530
Added by Dominic Cleal about 8 years ago
app/views/unattended/snippets/_coreos_cloudconfig.erb | ||
---|---|---|
[Match]
|
||
MACAddress=<%= @host.mac %>
|
||
[Network]
|
||
<% if !@host.subnet.gateway.nil? && !@host.subnet.gateway.empty? -%>
|
||
Gateway=<%= @host.subnet.gateway %>
|
||
<% end -%>
|
||
Address=<%= @host.ip %>/<%= @host.subnet.cidr %>
|
||
<% if !@host.subnet.dns_primary.nil? && !@host.subnet.dns_primary.empty? -%>
|
||
DNS=<%= @host.subnet.dns_primary %>
|
||
<% end -%>
|
||
<% if !@host.subnet.dns_secondary.nil? && !@host.subnet.dns_secondary.empty? -%>
|
||
DNS=<%= @host.subnet.dns_secondary %>
|
||
<% end -%>
|
||
- name: down-interfaces.service
|
||
command: start
|
||
content: |
|
Also available in: Unified diff
templates - sync from community-templates