Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add parameter ip_version #482

Merged
merged 1 commit into from
Jan 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,16 @@
# automatically calculated at 1.2 * token if the user doesn't specify a
# consensus value.
#
# @param ip_version
# This specifies version of IP to ask DNS resolver for. The value can be
# one of ipv4 (look only for an IPv4 address) , ipv6 (check only IPv6 address),
# ipv4-6 (look for all address families and use first IPv4 address found in the
# list if there is such address, otherwise use first IPv6 address) and
# ipv6-4 (look for all address families and use first IPv6 address found in the
# list if there is such address, otherwise use first IPv4 address).
#
# Default (if unspecified) is ipv6-4 for knet and udpu transports and ipv4 for udp.
#
# @param clear_node_high_bit
# This configuration option is optional and is only relevant when no nodeid
# is specified. Some openais clients require a signed 32 bit nodeid that is
Expand Down Expand Up @@ -401,6 +411,7 @@
Optional[String[1]] $cluster_name = undef,
Optional[Integer] $join = undef,
Optional[Integer] $consensus = undef,
Optional[String[1]] $ip_version = undef,
Optional[Enum['yes', 'no']] $clear_node_high_bit = undef,
Optional[Integer] $max_messages = undef,
Boolean $test_corosync_config = $corosync::params::test_corosync_config,
Expand Down Expand Up @@ -678,6 +689,7 @@
# - $token
# - $join
# - $consensus
# - $ip_version
# - $clear_node_high_bit
# - $max_messages
if $test_corosync_config {
Expand Down
3 changes: 3 additions & 0 deletions templates/corosync.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ totem {
<% if @consensus -%>
consensus: <%= @consensus %>
<% end -%>
<% if @ip_version -%>
ip_version: <%= @ip_version %>
<% end -%>
<% if @vsftype -%>
vsftype: <%= @vsftype %>
<% end -%>
Expand Down