From 6fd98e708bc9828d8d860eb32745b1cbd51ec445 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 25 Aug 2013 20:26:50 +0100 Subject: [PATCH] add firewall rules Signed-off-by: Stephen Gran --- modules/roles/manifests/pubsub.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/roles/manifests/pubsub.pp b/modules/roles/manifests/pubsub.pp index 20a3bb5a2..a43423efe 100644 --- a/modules/roles/manifests/pubsub.pp +++ b/modules/roles/manifests/pubsub.pp @@ -46,4 +46,15 @@ class roles::pubsub { provider => 'rabbitmqctl', require => Rabbitmq_user['admin'] } + + @ferm::rule { 'rabbitmq': + description => 'rabbitmq connections', + rule => '&SERVICE_RANGE(tcp, 5672, $HOST_DEBIAN_V4)' + } + + @ferm::rule { 'rabbitmq-v6': + domain => 'ip6', + description => 'rabbitmq connections', + rule => '&SERVICE_RANGE(tcp, 5672, $HOST_DEBIAN_V6)' + } } -- 2.20.1