d4science-ghn-cluster: new infra dev VM. liferay cluster.

library/roles/iptables: snippet for the multicast part of tomcat clustering.
This commit is contained in:
Andrea Dell'Amico 2016-05-25 15:55:51 +02:00
parent eff0a9746c
commit 93de42a333
2 changed files with 8 additions and 0 deletions

View File

@ -44,3 +44,4 @@ iptables_banned_default_policy: DROP
ganglia_enabled: False ganglia_enabled: False
nagios_enabled: False nagios_enabled: False
iptables_open_all_to_isti_nets: False iptables_open_all_to_isti_nets: False
tomcat_cluster_enabled: False

View File

@ -173,6 +173,13 @@
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if tomcat_cluster_enabled %}
# tomcat cluster
-A INPUT -m pkttype --pkt-type multicast -d {{ tomcat_cluster_multicast_addr }} -j ACCEPT
-A INPUT -m state --state NEW -p tcp -m tcp --dport {{ tomcat_cluster_multicast_port }} -j ACCEPT
{% endif %}
{% if ganglia_enabled is defined %} {% if ganglia_enabled is defined %}
{% if ganglia_enabled %} {% if ganglia_enabled %}
{% if ganglia_gmond_cluster_port is defined %} {% if ganglia_gmond_cluster_port is defined %}