Skip to content
Snippets Groups Projects
Commit b34d44d7 authored by Matthias Kneer's avatar Matthias Kneer Committed by Alessandro Franceschi
Browse files

Allow to configure ipv6 autoconf / slaac globally for redhat systems

parent c9514dd1
No related branches found
No related tags found
No related merge requests found
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
# String. Optional. Default: undef # String. Optional. Default: undef
# The hostname of your system # The hostname of your system
# #
# [*ipv6_autoconf*]
# String. Optional. Default: undef
# Globally disable / enable SLAAC for IPv6
#
# [*config_file_notify*] # [*config_file_notify*]
# String or Boolean. Optional. Default: 'class_default' # String or Boolean. Optional. Default: 'class_default'
# Defines the content of the notify parameter on the resources which # Defines the content of the notify parameter on the resources which
...@@ -94,6 +98,7 @@ class network ( ...@@ -94,6 +98,7 @@ class network (
$gateway = undef, $gateway = undef,
$nozeroconf = undef, $nozeroconf = undef,
$ipv6enable = undef, $ipv6enable = undef,
$ipv6_autoconf = undef,
# Stdmod commons # Stdmod commons
$package_name = $::network::params::package_name, $package_name = $::network::params::package_name,
......
...@@ -9,6 +9,9 @@ NOZEROCONF="<%= @nozeroconf %>" ...@@ -9,6 +9,9 @@ NOZEROCONF="<%= @nozeroconf %>"
<% if @ipv6enable -%> <% if @ipv6enable -%>
NETWORKING_IPV6="<%= @ipv6enable %>" NETWORKING_IPV6="<%= @ipv6enable %>"
IPV6INIT="<%= @ipv6enable %>" IPV6INIT="<%= @ipv6enable %>"
<% if @ipv6_autoconf -%>
IPV6_AUTOCONF="<%= @ipv6_autoconf %>"
<% end -%>
<% end -%> <% end -%>
<% if @hostname -%>HOSTNAME="<%= @hostname %>" <% if @hostname -%>HOSTNAME="<%= @hostname %>"
<%- else %>HOSTNAME="<%= @manage_hostname.split('.').first %>" <%- else %>HOSTNAME="<%= @manage_hostname.split('.').first %>"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment