diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-09-17 19:05:41 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2017-09-18 00:22:19 +0200 |
commit | 248bd83ed797f6e0f385e72a56aa7bafdf23d490 (patch) | |
tree | 29cd0d69b73b34d6d12ebe354be9d1d616983e3f /modules/base_installation/templates | |
parent | 503e4cf5c54e3fe4b802038e8917341c4ce803e5 (diff) | |
download | Puppet-248bd83ed797f6e0f385e72a56aa7bafdf23d490.tar.gz Puppet-248bd83ed797f6e0f385e72a56aa7bafdf23d490.tar.zst Puppet-248bd83ed797f6e0f385e72a56aa7bafdf23d490.zip |
Enhance install script, and add ip6 address
Diffstat (limited to 'modules/base_installation/templates')
-rw-r--r-- | modules/base_installation/templates/services/en-dhcp.network.erb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/base_installation/templates/services/en-dhcp.network.erb b/modules/base_installation/templates/services/en-dhcp.network.erb new file mode 100644 index 0000000..4f55582 --- /dev/null +++ b/modules/base_installation/templates/services/en-dhcp.network.erb | |||
@@ -0,0 +1,13 @@ | |||
1 | [Match] | ||
2 | Name=en* | ||
3 | |||
4 | [Network] | ||
5 | DHCP=ipv4 | ||
6 | |||
7 | <%- unless @ip6.empty? -%> | ||
8 | Address=<%= @ip6["ipAddress"] %>/<%= @ip6["mask"] %> | ||
9 | Gateway=<%= @ip6["gateway"] %> | ||
10 | <%- end -%> | ||
11 | |||
12 | [DHCP] | ||
13 | UseMTU=true | ||