summaryrefslogtreecommitdiff
path: root/templates/interface.epp
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interface.epp')
-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
+