diff --git a/vagrant/standalone.yml b/vagrant/standalone.yml index f178d82..b1671d9 100644 --- a/vagrant/standalone.yml +++ b/vagrant/standalone.yml @@ -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: diff --git a/vagrant/test_standalone.yml b/vagrant/test_standalone.yml index 8c0af0c..ebe1255 100644 --- a/vagrant/test_standalone.yml +++ b/vagrant/test_standalone.yml @@ -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