Skip to content

Commit 3e7624d

Browse files
authored
Merge pull request #933 from wyardley/wyardley/osfamily
BREAKING: Drop official Archlinux support
2 parents 4686d02 + 928eb66 commit 3e7624d

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

metadata.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@
4747
},
4848
{
4949
"operatingsystem": "OpenBSD"
50-
},
51-
{
52-
"operatingsystem": "Archlinux"
5350
}
5451
],
5552
"requirements": [

spec/classes/rabbitmq_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
os_facts
1313
end
1414

15-
name = case os_facts[:osfamily]
15+
name = case os_facts[:os]['family']
1616
when 'Archlinux', 'OpenBSD', 'FreeBSD'
1717
'rabbitmq'
1818
else
1919
'rabbitmq-server'
2020
end
2121

22-
rabbitmq_home = case os_facts[:osfamily]
22+
rabbitmq_home = case os_facts[:os]['family']
2323
when 'FreeBSD'
2424
'/var/db/rabbitmq'
2525
else
@@ -248,7 +248,7 @@
248248
end
249249
end
250250

251-
context 'with $management_ip_address undef and service_manage set to true', unless: os_facts[:osfamily] == 'Archlinux' do
251+
context 'with $management_ip_address undef and service_manage set to true', unless: os_facts[:os]['family'] == 'Archlinux' do
252252
let(:params) { { admin_enable: true, management_ip_address: :undef } }
253253

254254
it 'we enable the admin interface by default' do
@@ -260,7 +260,7 @@
260260
end
261261
end
262262

263-
context 'with service_manage set to true, node_ip_address = undef, and default user/pass specified', unless: os_facts[:osfamily] == 'Archlinux' do
263+
context 'with service_manage set to true, node_ip_address = undef, and default user/pass specified', unless: os_facts[:os]['family'] == 'Archlinux' do
264264
let(:params) { { admin_enable: true, default_user: 'foobar', default_pass: 'hunter2', node_ip_address: :undef } }
265265

266266
it 'we use the correct URL to rabbitmqadmin' do
@@ -272,7 +272,7 @@
272272
end
273273
end
274274

275-
context 'with service_manage set to true and default user/pass specified', unless: os_facts[:osfamily] == 'Archlinux' do
275+
context 'with service_manage set to true and default user/pass specified', unless: os_facts[:os]['family'] == 'Archlinux' do
276276
let(:params) { { admin_enable: true, default_user: 'foobar', default_pass: 'hunter2', management_ip_address: '1.1.1.1' } }
277277

278278
it 'we use the correct URL to rabbitmqadmin' do
@@ -284,7 +284,7 @@
284284
end
285285
end
286286

287-
context 'with service_manage set to true and archive_options set', unless: os_facts[:osfamily] == 'Archlinux' do
287+
context 'with service_manage set to true and archive_options set', unless: os_facts[:os]['family'] == 'Archlinux' do
288288
let(:params) do
289289
{
290290
admin_enable: true,
@@ -301,7 +301,7 @@
301301
end
302302
end
303303

304-
context 'with service_manage set to true and management port specified', unless: os_facts[:osfamily] == 'Archlinux' do
304+
context 'with service_manage set to true and management port specified', unless: os_facts[:os]['family'] == 'Archlinux' do
305305
# NOTE: that the 2.x management port is 55672 not 15672
306306
let(:params) { { admin_enable: true, management_port: 55_672, management_ip_address: '1.1.1.1' } }
307307

@@ -314,7 +314,7 @@
314314
end
315315
end
316316

317-
context 'with ipv6, service_manage set to true and management port specified', unless: os_facts[:osfamily] == 'Archlinux' do
317+
context 'with ipv6, service_manage set to true and management port specified', unless: os_facts[:os]['family'] == 'Archlinux' do
318318
# NOTE: that the 2.x management port is 55672 not 15672
319319
let(:params) { { admin_enable: true, management_port: 55_672, management_ip_address: '::1' } }
320320

0 commit comments

Comments
 (0)