Skip to content

Commit

Permalink
Merge pull request #482 from antondollmaier/master
Browse files Browse the repository at this point in the history
add parameter ip_version
  • Loading branch information
bastelfreak authored Jan 1, 2020
2 parents aacae9d + 3038b2d commit 2a27f93
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
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

0 comments on commit 2a27f93

Please sign in to comment.