projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fd98e7
)
add cluster rules
author
Stephen Gran
<steve@lobefin.net>
Sun, 25 Aug 2013 21:47:45 +0000
(22:47 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 25 Aug 2013 21:47:45 +0000
(22:47 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
modules/roles/manifests/pubsub.pp
patch
|
blob
|
history
diff --git
a/modules/roles/manifests/pubsub.pp
b/modules/roles/manifests/pubsub.pp
index
a43423e
..
e574032
100644
(file)
--- a/
modules/roles/manifests/pubsub.pp
+++ b/
modules/roles/manifests/pubsub.pp
@@
-57,4
+57,16
@@
class roles::pubsub {
description => 'rabbitmq connections',
rule => '&SERVICE_RANGE(tcp, 5672, $HOST_DEBIAN_V6)'
}
+
+ if $::hostname == $cc_master {
+ $you = $cc_secondary
+ } else {
+ $you = $cc_master
+ }
+
+ @ferm::rule { 'rabbitmq_cluster':
+ domain => '(ip,ip6)',
+ description => 'rabbitmq cluster connections',
+ rule => "proto tcp mod state state (NEW) saddr (${you}) ACCEPT"
+ }
}