Add a test to ensure RabbitMQ is listenning to the good port by default
This commit is contained in:
Родитель
4b247a9250
Коммит
944fd5fab2
|
@ -2,8 +2,6 @@
|
|||
- hosts: rabbit-standalone
|
||||
roles:
|
||||
- role: rabbitmq
|
||||
rabbitmq_ssl: true
|
||||
rabbitmq_conf_tcp_listeners_address: '0.0.0.0'
|
||||
rabbitmq_vhost_definitions:
|
||||
- name: sensu
|
||||
rabbitmq_users_definitions:
|
||||
|
|
|
@ -1,4 +1,19 @@
|
|||
---
|
||||
- shell: netstat -an | grep 0.0.0.0:5672.*LISTEN
|
||||
register: test_result
|
||||
ignore_errors: True
|
||||
- name: rabbitmq should not be listenning to the unencrypted port
|
||||
assert:
|
||||
that:
|
||||
- test_result|failed
|
||||
|
||||
- shell: netstat -an | grep 0.0.0.0:5671.*LISTEN
|
||||
register: test_result
|
||||
- name: rabbitmq should be listenning to the ssl port
|
||||
assert:
|
||||
that:
|
||||
- test_result|success
|
||||
|
||||
- shell: rabbitmqctl list_vhosts | grep sensu
|
||||
register: test_result
|
||||
- name: ensure the sensu vhost was added
|
||||
|
|
Загрузка…
Ссылка в новой задаче