|
12 | 12 | os_facts
|
13 | 13 | end
|
14 | 14 |
|
15 |
| - name = case os_facts[:osfamily] |
| 15 | + name = case os_facts[:os]['family'] |
16 | 16 | when 'Archlinux', 'OpenBSD', 'FreeBSD'
|
17 | 17 | 'rabbitmq'
|
18 | 18 | else
|
19 | 19 | 'rabbitmq-server'
|
20 | 20 | end
|
21 | 21 |
|
22 |
| - rabbitmq_home = case os_facts[:osfamily] |
| 22 | + rabbitmq_home = case os_facts[:os]['family'] |
23 | 23 | when 'FreeBSD'
|
24 | 24 | '/var/db/rabbitmq'
|
25 | 25 | else
|
|
248 | 248 | end
|
249 | 249 | end
|
250 | 250 |
|
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 |
252 | 252 | let(:params) { { admin_enable: true, management_ip_address: :undef } }
|
253 | 253 |
|
254 | 254 | it 'we enable the admin interface by default' do
|
|
260 | 260 | end
|
261 | 261 | end
|
262 | 262 |
|
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 |
264 | 264 | let(:params) { { admin_enable: true, default_user: 'foobar', default_pass: 'hunter2', node_ip_address: :undef } }
|
265 | 265 |
|
266 | 266 | it 'we use the correct URL to rabbitmqadmin' do
|
|
272 | 272 | end
|
273 | 273 | end
|
274 | 274 |
|
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 |
276 | 276 | let(:params) { { admin_enable: true, default_user: 'foobar', default_pass: 'hunter2', management_ip_address: '1.1.1.1' } }
|
277 | 277 |
|
278 | 278 | it 'we use the correct URL to rabbitmqadmin' do
|
|
284 | 284 | end
|
285 | 285 | end
|
286 | 286 |
|
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 |
288 | 288 | let(:params) do
|
289 | 289 | {
|
290 | 290 | admin_enable: true,
|
|
301 | 301 | end
|
302 | 302 | end
|
303 | 303 |
|
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 |
305 | 305 | # NOTE: that the 2.x management port is 55672 not 15672
|
306 | 306 | let(:params) { { admin_enable: true, management_port: 55_672, management_ip_address: '1.1.1.1' } }
|
307 | 307 |
|
|
314 | 314 | end
|
315 | 315 | end
|
316 | 316 |
|
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 |
318 | 318 | # NOTE: that the 2.x management port is 55672 not 15672
|
319 | 319 | let(:params) { { admin_enable: true, management_port: 55_672, management_ip_address: '::1' } }
|
320 | 320 |
|
|
0 commit comments