diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-02 04:31:50 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-02 04:44:39 +0100 |
commit | a261aa089f879b6854c7b8fc7676d6b23ac25588 (patch) | |
tree | fc7e5e7dd40cca83f2eb130a8c26066689a6cd89 /modules/networking/templates/interface.epp | |
parent | Add debug notice. (diff) | |
download | webdav_server-a261aa089f879b6854c7b8fc7676d6b23ac25588.tar.gz webdav_server-a261aa089f879b6854c7b8fc7676d6b23ac25588.tar.xz |
Network rewrites.
Diffstat (limited to 'modules/networking/templates/interface.epp')
-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 + |