--- inputs/ISS/wwwnext.cf (revision 746)
+++ inputs/ISS/wwwnext.cf (revision 747)
actionsequence = ( directories packages copy shellcommands )
AllowRedefinitionOf = ( RPMInstallCommand )
RPMInstallCommand = ( "/usr/bin/yum -y install %s" )
+ wwwnext_sb12::
+ wwwnext_other = ( "wwwnext-dbx" )
+ wwwnext_dbx::
+ wwwnext_other = ( "wwwnext-sb12" )
classes:
wwwnext_hb_running = ( ReturnsZeroShell(/sbin/pidof heartbeat >/dev/null) )
mode=0644
server=${cfmaster}
+editfiles:
+ linux::
+ { /etc/sysconfig/iptables
+ Backup "single"
+ BeginGroupIfNoLineMatching "^-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp -s ${wwwnext_other} --dport 7788 -j ACCEPT$"
+ IncrementPointer "-9999"
+ LocateLineMatching ".*REJECT.*"
+ IncrementPointer "-1"
+ InsertLine "-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp -s ${wwwnext_other} --dport 7788 -j ACCEPT"
+ EndGroup
+ DefineClasses "wwwnext_restart_iptables"
+ }
+
shellcommands:
!wwwnext_hb_running::
"/sbin/service heartbeat start"
!wwwnext_mod_loaded::
"/sbin/modprobe drbd"
+ iptables_on.wwwnext_restart_iptables::
+ "/sbin/service iptables restart >/dev/null"