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 | a7b0f72f220528ba4de33f52104fe674000f625a (patch) | |
tree | eae89d0adf398eaa9e31432b85fe9d0c926bd361 /templates | |
download | networking-a7b0f72f220528ba4de33f52104fe674000f625a.tar.gz networking-a7b0f72f220528ba4de33f52104fe674000f625a.tar.xz |
Network rewrites.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interface.epp | 16 |
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 + |