Skip to content
Snippets Groups Projects
Unverified Commit 55719d1d authored by Alessandro Franceschi's avatar Alessandro Franceschi Committed by GitHub
Browse files

Merge pull request #328 from example42/andres-moya-ipv6-options

Andres moya ipv6 options
parents 2f02cf9a 15ca3fc7
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,12 @@ class network ( ...@@ -98,7 +98,12 @@ class network (
$gateway = undef, $gateway = undef,
$nozeroconf = undef, $nozeroconf = undef,
$ipv6enable = undef, $ipv6enable = undef,
$networking_ipv6 = undef,
$ipv6forwarding = undef,
$ipv6_autoconf = undef, $ipv6_autoconf = undef,
$ipv6_autotunnel = undef,
$ipv6_defaultgw = undef,
$ipv6_radvd_pidfile = undef,
# Stdmod commons # Stdmod commons
$package_name = $::network::params::package_name, $package_name = $::network::params::package_name,
...@@ -231,6 +236,28 @@ class network ( ...@@ -231,6 +236,28 @@ class network (
$config_file_ensure = present $config_file_ensure = present
} }
$manage_networking_ipv6 = $networking_ipv6 ? {
'yes' => 'yes',
'no' => 'no',
default => undef,
}
$manage_ipv6forwarding = $ipv6forwarding ? {
'yes' => 'yes',
'no' => 'no',
default => undef,
}
$manage_ipv6_autoconf = $ipv6_autoconf ? {
'yes' => 'yes',
'no' => 'no',
default => undef,
}
$manage_ipv6_autotunnel = $ipv6_autotunnel ? {
'yes' => 'yes',
'no' => 'no',
default => undef,
}
$manage_ipv6_defaultgw = $ipv6_defaultgw
$manage_ipv6_radvd_pidfile = $ipv6_radvd_pidfile
# Dependency class # Dependency class
......
...@@ -9,9 +9,24 @@ NOZEROCONF="<%= @nozeroconf %>" ...@@ -9,9 +9,24 @@ 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 -%>
<% if @manage_networking_ipv6 -%>
NETWORKING_IPV6="<%= @manage_networking_ipv6 %>"
<% end -%>
<% if @manage_ipv6forwarding -%>
IPV6FORWARDING="<%= @manage_ipv6forwarding %>"
<% end -%>
<% if @manage_ipv6_autoconf -%>
IPV6_AUTOCONF="<%= @manage_ipv6_autoconf %>"
<% end -%>
<% if @manage_ipv6_autotunnel -%>
IPV6_AUTOTUNNEL="<%= @manage_ipv6_autotunnel %>"
<% end -%>
<% if @manage_ipv6_defaultgw -%>
IPV6_DEFAULTGW="<%= @manage_ipv6_defaultgw %>"
<% end -%>
<% if @manage_ipv6_radvd_pidfile -%>
IPV6_RADVD_PIDFILE="<%= @manage_ipv6_radvd_pidfile %>"
<% 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