diff options
Diffstat (limited to 'modules/networking/templates')
-rw-r--r-- | modules/networking/templates/interface.epp | 16 |
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 + |