diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-10-08 12:42:18 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-10-08 12:42:18 +0200 |
commit | f8423646f0b49767894861416f81860e3d0c13bd (patch) | |
tree | e7e9acfdb52dc25a96965ef08c96f7d1038d028b /modules | |
parent | 4aa9e5f6b0c11f5e9e6bd762b1a9c1bb64ce41ad (diff) | |
download | Puppet-f8423646f0b49767894861416f81860e3d0c13bd.tar.gz Puppet-f8423646f0b49767894861416f81860e3d0c13bd.tar.zst Puppet-f8423646f0b49767894861416f81860e3d0c13bd.zip |
Fix network file for ipv6
Diffstat (limited to 'modules')
-rw-r--r-- | modules/base_installation/templates/services/en-dhcp.network.erb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/base_installation/templates/services/en-dhcp.network.erb b/modules/base_installation/templates/services/en-dhcp.network.erb index 4f55582..0255595 100644 --- a/modules/base_installation/templates/services/en-dhcp.network.erb +++ b/modules/base_installation/templates/services/en-dhcp.network.erb | |||
@@ -5,9 +5,14 @@ Name=en* | |||
5 | DHCP=ipv4 | 5 | DHCP=ipv4 |
6 | 6 | ||
7 | <%- unless @ip6.empty? -%> | 7 | <%- unless @ip6.empty? -%> |
8 | Address=<%= @ip6["ipAddress"] %>/<%= @ip6["mask"] %> | ||
9 | Gateway=<%= @ip6["gateway"] %> | 8 | Gateway=<%= @ip6["gateway"] %> |
10 | <%- end -%> | ||
11 | 9 | ||
10 | [Address] | ||
11 | Address=<%= @ip6["ipAddress"] %>/<%= @ip6["mask"] %> | ||
12 | |||
13 | [Route] | ||
14 | Destination=<%= @ip6["gateway"] %> | ||
15 | |||
16 | <%- end -%> | ||
12 | [DHCP] | 17 | [DHCP] |
13 | UseMTU=true | 18 | UseMTU=true |