From b34d44d7818140d724333dfa00688fc46f6dae1a Mon Sep 17 00:00:00 2001 From: Matthias Kneer <mkneer@plusline.net> Date: Wed, 29 Apr 2020 10:34:20 +0200 Subject: [PATCH] Allow to configure ipv6 autoconf / slaac globally for redhat systems --- manifests/init.pp | 5 +++++ templates/hostname-RedHat.erb | 3 +++ 2 files changed, 8 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index 6624d4c..c4b090b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -14,6 +14,10 @@ # String. Optional. Default: undef # The hostname of your system # +# [*ipv6_autoconf*] +# String. Optional. Default: undef +# Globally disable / enable SLAAC for IPv6 +# # [*config_file_notify*] # String or Boolean. Optional. Default: 'class_default' # Defines the content of the notify parameter on the resources which @@ -94,6 +98,7 @@ class network ( $gateway = undef, $nozeroconf = undef, $ipv6enable = undef, + $ipv6_autoconf = undef, # Stdmod commons $package_name = $::network::params::package_name, diff --git a/templates/hostname-RedHat.erb b/templates/hostname-RedHat.erb index 4c3b470..e484461 100644 --- a/templates/hostname-RedHat.erb +++ b/templates/hostname-RedHat.erb @@ -9,6 +9,9 @@ NOZEROCONF="<%= @nozeroconf %>" <% if @ipv6enable -%> NETWORKING_IPV6="<%= @ipv6enable %>" IPV6INIT="<%= @ipv6enable %>" +<% if @ipv6_autoconf -%> +IPV6_AUTOCONF="<%= @ipv6_autoconf %>" +<% end -%> <% end -%> <% if @hostname -%>HOSTNAME="<%= @hostname %>" <%- else %>HOSTNAME="<%= @manage_hostname.split('.').first %>" -- GitLab