Skip to content

Commit e4ff382

Browse files
committed
additional fixes and tweaks per github conversation!
1 parent 008c89b commit e4ff382

File tree

3 files changed

+32
-48
lines changed

3 files changed

+32
-48
lines changed

REFERENCE.md

+7-13
Original file line numberDiff line numberDiff line change
@@ -808,8 +808,8 @@ Default value: `'python'`
808808

809809
Data type: `Optional[Boolean]`
810810

811-
Boolean - Enables or disables continuous membership reconciliation.
812-
This requires RabbitMQ 3.13 or higher. More information on this configuration
811+
Enables or disables continuous membership reconciliation.
812+
This REQUIRES RabbitMQ 3.13 or higher to be set to true. More information on this configuration
813813
can be found here: https://www.rabbitmq.com/docs/quorum-queues
814814

815815
Default value: `undef`
@@ -818,9 +818,8 @@ Default value: `undef`
818818

819819
Data type: `Optional[Boolean]`
820820

821-
Boolean - Enables or disables automatic removal of member nodes that are no longer part of the cluster,
822-
but still a member of the quorum queue. This requires RabbitMQ 3.13 or higher. More information on this configuration
823-
can be found here: https://www.rabbitmq.com/docs/quorum-queues
821+
Enables or disables automatic removal of member nodes that are no longer part of the cluster,
822+
but still a member of the quorum queue.
824823
Important Note: This only takes affect if quorum_membership_reconciliation_enabled is set to true.
825824

826825
Default value: `undef`
@@ -829,8 +828,7 @@ Default value: `undef`
829828

830829
Data type: `Optional[Integer]`
831830

832-
Integer - The default evaluation interval in milliseconds. This requires RabbitMQ 3.13 or higher. More information on this configuration
833-
can be found here: https://www.rabbitmq.com/docs/quorum-queues
831+
The default evaluation interval in milliseconds.
834832
Important Note: This only takes affect if quorum_membership_reconciliation_enabled is set to true.
835833

836834
Default value: `undef`
@@ -839,11 +837,9 @@ Default value: `undef`
839837

840838
Data type: `Optional[Integer]`
841839

842-
Integer - The reconciliation delay in milliseconds, used when a trigger event occurs,
840+
The reconciliation delay in milliseconds, used when a trigger event occurs,
843841
for example, a node is added or removed from the cluster or an applicable policy changes.
844842
This delay will be applied only once, then the regular interval will be used again.
845-
This requires RabbitMQ 3.13 or higher. More information on this configuration
846-
can be found here: https://www.rabbitmq.com/docs/quorum-queues
847843
Important Note: This only takes affect if quorum_membership_reconciliation_enabled is set to true.
848844

849845
Default value: `undef`
@@ -852,9 +848,7 @@ Default value: `undef`
852848

853849
Data type: `Optional[Integer]`
854850

855-
Integer - Controls the target group size for a quorum queue
856-
This requires RabbitMQ 3.13 or higher. More information on this configuration
857-
can be found here: https://www.rabbitmq.com/docs/quorum-queues
851+
Controls the target group size for a quorum queue
858852
Important Note: This only takes affect if quorum_membership_reconciliation_enabled is set to true.
859853

860854
Default value: `undef`

manifests/init.pp

+7-13
Original file line numberDiff line numberDiff line change
@@ -241,29 +241,23 @@
241241
# @param python_package
242242
# Name of the package required by rabbitmqadmin.
243243
# @param quorum_membership_reconciliation_enabled
244-
# Boolean - Enables or disables continuous membership reconciliation.
245-
# This requires RabbitMQ 3.13 or higher. More information on this configuration
244+
# Enables or disables continuous membership reconciliation.
245+
# This REQUIRES RabbitMQ 3.13 or higher to be set to true. More information on this configuration
246246
# can be found here: https://www.rabbitmq.com/docs/quorum-queues
247247
# @param quorum_membership_reconciliation_auto_remove
248-
# Boolean - Enables or disables automatic removal of member nodes that are no longer part of the cluster,
249-
# but still a member of the quorum queue. This requires RabbitMQ 3.13 or higher. More information on this configuration
250-
# can be found here: https://www.rabbitmq.com/docs/quorum-queues
248+
# Enables or disables automatic removal of member nodes that are no longer part of the cluster,
249+
# but still a member of the quorum queue.
251250
# Important Note: This only takes affect if quorum_membership_reconciliation_enabled is set to true.
252251
# @param quorum_membership_reconciliation_interval
253-
# Integer - The default evaluation interval in milliseconds. This requires RabbitMQ 3.13 or higher. More information on this configuration
254-
# can be found here: https://www.rabbitmq.com/docs/quorum-queues
252+
# The default evaluation interval in milliseconds.
255253
# Important Note: This only takes affect if quorum_membership_reconciliation_enabled is set to true.
256254
# @param quorum_membership_reconciliation_trigger_interval
257-
# Integer - The reconciliation delay in milliseconds, used when a trigger event occurs,
255+
# The reconciliation delay in milliseconds, used when a trigger event occurs,
258256
# for example, a node is added or removed from the cluster or an applicable policy changes.
259257
# This delay will be applied only once, then the regular interval will be used again.
260-
# This requires RabbitMQ 3.13 or higher. More information on this configuration
261-
# can be found here: https://www.rabbitmq.com/docs/quorum-queues
262258
# Important Note: This only takes affect if quorum_membership_reconciliation_enabled is set to true.
263259
# @param quorum_membership_reconciliation_target_group_size
264-
# Integer - Controls the target group size for a quorum queue
265-
# This requires RabbitMQ 3.13 or higher. More information on this configuration
266-
# can be found here: https://www.rabbitmq.com/docs/quorum-queues
260+
# Controls the target group size for a quorum queue
267261
# Important Note: This only takes affect if quorum_membership_reconciliation_enabled is set to true.
268262
# @param repos_ensure
269263
# Ensure that a repo with the official (and newer) RabbitMQ package is configured, along with its signing key.

spec/classes/rabbitmq_spec.rb

+18-22
Original file line numberDiff line numberDiff line change
@@ -1801,12 +1801,12 @@
18011801
let(:params) { { quorum_membership_reconciliation_enabled: :undef } }
18021802

18031803
it 'sets quorum_membership_reconciliation_enabled parameter undef in config file' do
1804-
is_expected.not_to contain_file('rabbitmq.config'). \
1805-
with_content(%r{\{quorum_membership_reconciliation_enabled, .*\}}). \
1806-
with_content(%r{\{quorum_membership_reconciliation_auto_remove, .*\}}). \
1807-
with_content(%r{\{quorum_membership_reconciliation_interval, .*\}}). \
1808-
with_content(%r{\{quorum_membership_reconciliation_trigger_interval, .*\}}). \
1809-
with_content(%r{\{quorum_membership_reconciliation_target_group_size, .*\}})
1804+
is_expected.to contain_file('rabbitmq.config'). \
1805+
without_content(%r{\{quorum_membership_reconciliation_enabled, }). \
1806+
without_content(%r{\{quorum_membership_reconciliation_auto_remove, }). \
1807+
without_content(%r{\{quorum_membership_reconciliation_interval, }). \
1808+
without_content(%r{\{quorum_membership_reconciliation_trigger_interval, }). \
1809+
without_content(%r{\{quorum_membership_reconciliation_target_group_size, })
18101810
end
18111811
end
18121812

@@ -1817,12 +1817,12 @@
18171817
let(:params) { { quorum_membership_reconciliation_enabled: false } }
18181818

18191819
it 'sets quorum_membership_reconciliation_enabled parameter false in config file' do
1820-
is_expected.not_to contain_file('rabbitmq.config'). \
1821-
with_content(%r{\{quorum_membership_reconciliation_enabled, .*\}}). \
1822-
with_content(%r{\{quorum_membership_reconciliation_auto_remove, .*\}}). \
1823-
with_content(%r{\{quorum_membership_reconciliation_interval, .*\}}). \
1824-
with_content(%r{\{quorum_membership_reconciliation_trigger_interval, .*\}}). \
1825-
with_content(%r{\{quorum_membership_reconciliation_target_group_size, .*\}})
1820+
is_expected.to contain_file('rabbitmq.config'). \
1821+
without_content(%r{\{quorum_membership_reconciliation_enabled, }). \
1822+
without_content(%r{\{quorum_membership_reconciliation_auto_remove, }). \
1823+
without_content(%r{\{quorum_membership_reconciliation_interval, }). \
1824+
without_content(%r{\{quorum_membership_reconciliation_trigger_interval, }). \
1825+
without_content(%r{\{quorum_membership_reconciliation_target_group_size, })
18261826
end
18271827
end
18281828

@@ -1834,15 +1834,11 @@
18341834

18351835
it 'sets quorum_membership_reconciliation_enabled parameter true in config file' do
18361836
is_expected.to contain_file('rabbitmq.config'). \
1837-
with_content(%r{\{quorum_membership_reconciliation_enabled, true\}})
1838-
end
1839-
1840-
it 'sets quorum_membership_reconciliation_enabled parameter true in config file ONLY' do
1841-
is_expected.not_to contain_file('rabbitmq.config'). \
1842-
with_content(%r{\{quorum_membership_reconciliation_auto_remove, .*\}}). \
1843-
with_content(%r{\{quorum_membership_reconciliation_interval, .*\}}). \
1844-
with_content(%r{\{quorum_membership_reconciliation_trigger_interval, .*\}}). \
1845-
with_content(%r{\{quorum_membership_reconciliation_target_group_size, .*\}})
1837+
with_content(%r{\{quorum_membership_reconciliation_enabled, true\}}). \
1838+
without_content(%r{\{quorum_membership_reconciliation_auto_remove, }). \
1839+
without_content(%r{\{quorum_membership_reconciliation_interval, }). \
1840+
without_content(%r{\{quorum_membership_reconciliation_trigger_interval, }). \
1841+
without_content(%r{\{quorum_membership_reconciliation_target_group_size, })
18461842
end
18471843
end
18481844

@@ -1854,7 +1850,7 @@
18541850
quorum_membership_reconciliation_enabled: true,
18551851
quorum_membership_reconciliation_auto_remove: true,
18561852
quorum_membership_reconciliation_interval: 36_000,
1857-
quorum_membership_reconciliation_trigger_interval: 3600,
1853+
quorum_membership_reconciliation_trigger_interval: 3_600,
18581854
quorum_membership_reconciliation_target_group_size: 2
18591855
}
18601856
end

0 commit comments

Comments
 (0)