1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
Description: Add enable_totem_interface param
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2021-01-20
--- puppet-module-voxpupuli-corosync-6.0.1.orig/manifests/init.pp
+++ puppet-module-voxpupuli-corosync-6.0.1/manifests/init.pp
@@ -278,6 +278,11 @@
# Default (Debian >= 8): true
# Default (otherwise): false
#
+# [*enable_totem_interface*]
+# If set to false, do not populate the totem with an interface or protocol,
+# which is needed with Corosync >= 3.1.0 if not doing multicast.
+# Default: false
+#
# === Examples
#
# class { 'corosync':
@@ -348,6 +353,7 @@ class corosync(
Optional[Enum['yes', 'no']] $clear_node_high_bit = undef,
Optional[Integer] $max_messages = undef,
Boolean $test_corosync_config = $corosync::params::test_corosync_config,
+ Boolean $enable_totem_interface = true,
) inherits ::corosync::params {
if $set_votequorum and empty($quorum_members) {
--- puppet-module-voxpupuli-corosync-6.0.1.orig/templates/corosync.conf.erb
+++ puppet-module-voxpupuli-corosync-6.0.1/templates/corosync.conf.erb
@@ -41,7 +41,7 @@ totem {
<% if @threads -%>
threads: <%= @threads %>
<% end -%>
-<% if @unicast_addresses -%>
+<% if @unicast_addresses and @enable_totem_interface -%>
transport: udpu
<% Array(@unicast_addresses.first).each_index do |interface| -%>
interface {
@@ -61,6 +61,7 @@ totem {
}
<% end -%>
<% else -%>
+<% if @enable_totem_interface -%>
<% [@bind_address].flatten.each_index do |i| -%>
interface {
ringnumber: <%= i %>
@@ -78,6 +79,7 @@ totem {
}
<% end -%>
<% end -%>
+<% end -%>
}
logging {
|