Skip to content

Commit 4ac2098

Browse files
authored
Merge pull request #1005 from voxpupuli/modulesync
modulesync 9.0.0
2 parents 381dcc0 + fc7cda0 commit 4ac2098

File tree

8 files changed

+12
-19
lines changed

8 files changed

+12
-19
lines changed

.github/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
skip-changelog:
3+
- head-branch: ['^release-*', 'release']

.msync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Managed by modulesync - DO NOT EDIT
33
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
44

5-
modulesync_config_version: '8.0.1'
5+
modulesync_config_version: '9.0.0'

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
55

66
group :test do
7-
gem 'voxpupuli-test', '~> 7.2', :require => false
7+
gem 'voxpupuli-test', '~> 8.0', :require => false
88
gem 'coveralls', :require => false
99
gem 'simplecov-console', :require => false
1010
gem 'puppet_metadata', '~> 4.0', :require => false

REFERENCE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ Default value: `undef`
537537

538538
Data type: `Variant[Integer[-1],Enum['unlimited'],Pattern[/^(infinity|\d+(:(infinity|\d+))?)$/]]`
539539

540-
Set rabbitmq file ulimit. Defaults to 16384. Only available on systems with systemd
540+
Set rabbitmq file ulimit. Defaults to 16384. Only available on Linux
541541

542542
Default value: `16384`
543543

manifests/config.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
}
221221
}
222222
223-
if $facts['systemd'] { # systemd fact provided by systemd module
223+
if $facts['kernel'] == 'Linux' {
224224
systemd::manage_dropin { 'service-90-limits.conf':
225225
unit => "${service_name}.service",
226226
selinux_ignore_defaults => ($facts['os']['family'] == 'RedHat'),

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
# set explicitly if using clustering. If you run Pacemaker and you don't want to use RabbitMQ buildin cluster, you can set config_cluster
171171
# to 'False' and set 'erlang_cookie'.
172172
# @param file_limit
173-
# Set rabbitmq file ulimit. Defaults to 16384. Only available on systems with systemd
173+
# Set rabbitmq file ulimit. Defaults to 16384. Only available on Linux
174174
# @param oom_score_adj
175175
# Set rabbitmq-server process OOM score. Defaults to 0.
176176
# @param heartbeat

manifests/service.pp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,5 @@
2727
hasrestart => true,
2828
name => $service_name,
2929
}
30-
if $facts['systemd'] and defined(Class['systemd::systemctl::daemon_reload']) {
31-
Class['systemd::systemctl::daemon_reload'] -> Service['rabbitmq-server']
32-
}
3330
}
3431
}

spec/classes/rabbitmq_spec.rb

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
end
120120

121121
['infinity', -1, 1234].each do |value|
122-
context "with file_limit => '#{value}'", if: os_facts['systemd'] do
122+
context "with file_limit => '#{value}'", if: os_facts['kernel'] == 'Linux' do
123123
let(:params) { { file_limit: value } }
124124

125125
selinux_ignore_defaults = os_facts[:os]['family'] == 'RedHat'
@@ -143,7 +143,7 @@
143143
end
144144

145145
[-1000, 0, 1000].each do |value|
146-
context "with oom_score_adj => '#{value}'", if: os_facts['systemd'] do
146+
context "with oom_score_adj => '#{value}'", if: os_facts[:kernel] == 'Linux' do
147147
let(:params) { { oom_score_adj: value } }
148148

149149
it { is_expected.to contain_systemd__manage_dropin('service-90-limits.conf').with_service_entry({ 'LimitNOFILE' => 16_384, 'OOMScoreAdjust' => value }) }
@@ -160,11 +160,11 @@
160160
end
161161
end
162162

163-
context 'on systems with systemd', if: os_facts['systemd'] do
163+
context 'on Linux', if: os_facts[:kernel] == 'Linux' do
164164
it { is_expected.to contain_systemd__manage_dropin('service-90-limits.conf') }
165165
end
166166

167-
context 'on systems without systemd', unless: os_facts['systemd'] do
167+
context 'on non-Linux', unless: os_facts[:kernel] == 'Linux' do
168168
it { is_expected.not_to contain_systemd__manage_dropin('service-90-limits.conf') }
169169
end
170170

@@ -1747,13 +1747,6 @@
17471747
}
17481748
end
17491749

1750-
context 'on systems with systemd', if: os_facts[:systemd] do
1751-
it do
1752-
is_expected.to contain_service('rabbitmq-server').
1753-
that_requires('Class[systemd::systemctl::daemon_reload]')
1754-
end
1755-
end
1756-
17571750
describe 'service with ensure stopped' do
17581751
let :params do
17591752
{ service_ensure: 'stopped' }

0 commit comments

Comments
 (0)