summaryrefslogtreecommitdiff
path: root/modules/networking/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
commita261aa089f879b6854c7b8fc7676d6b23ac25588 (patch)
treefc7e5e7dd40cca83f2eb130a8c26066689a6cd89 /modules/networking/templates
parentAdd debug notice. (diff)
downloadwebdav_server-a261aa089f879b6854c7b8fc7676d6b23ac25588.tar.gz
webdav_server-a261aa089f879b6854c7b8fc7676d6b23ac25588.tar.xz
Network rewrites.
Diffstat (limited to 'modules/networking/templates')
-rw-r--r--modules/networking/templates/interface.epp16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/networking/templates/interface.epp b/modules/networking/templates/interface.epp
new file mode 100644
index 0000000..d824f69
--- /dev/null
+++ b/modules/networking/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
+