feat: add network templates and vars

This commit is contained in:
AJ Schroeder
2024-06-29 10:23:06 -05:00
parent b6d2481022
commit 0eadf8fba9
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
%{ if ip != null ~}
network --device=${device} --bootproto=static --ip=${ip} --netmask=${cidrnetmask("${ip}/${netmask}")} --gateway=${gateway} --nameserver=${join(",", dns)}
%{ else ~}
network --device=${device} --bootproto=dhcp
%{ endif ~}