summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-01-02 04:31:50 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-01-02 04:44:39 +0100
commita7b0f72f220528ba4de33f52104fe674000f625a (patch)
treeeae89d0adf398eaa9e31432b85fe9d0c926bd361 /templates
downloadnetworking-a7b0f72f220528ba4de33f52104fe674000f625a.tar.gz
networking-a7b0f72f220528ba4de33f52104fe674000f625a.tar.xz
Network rewrites.
Diffstat (limited to 'templates')
-rw-r--r--templates/interface.epp16
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/interface.epp b/templates/interface.epp
new file mode 100644
index 0000000..d824f69
--- /dev/null
+++ b/templates/interface.epp
@@ -0,0 +1,16 @@
+# File managed by puppet
+auto host0
+# allow-hotplug host0
+
+iface host0 inet <%= if $addr4 { 'static' } else { 'dhcp' } %>
+<%- if $addr4 { -%>
+ address <%= $addr4 %>
+ <%- if $gw4 { -%>
+ gateway <%= $gw4 %>
+ <%- } -%>
+<%- } -%>
+
+
+iface host0 inet6 auto
+ private 0
+