diff --git a/manifests/init.pp b/manifests/init.pp index 6624d4c09c257c8b3f3d88e868945f8925545253..c4b090b2f3de57e86ab145f3312a35e3c2319553 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 4c3b47007e41f89ea82e17a13ef61c023794e8da..e484461a8a65fe5ae0b17d37d269e2b8f80bcd97 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 %>"