Skip to content
This repository has been archived by the owner on Jul 24, 2018. It is now read-only.

Commit

Permalink
add jmx to firewall rules
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineco committed Dec 16, 2014
1 parent a743d71 commit 691eb22
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions manifests/firewall.pp
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,13 @@
action => 'accept'
}
}

# jmx
if $::tomcat::jmx_listener {
firewall { "${::tomcat::jmx_registry_port}/${::tomcat::jmx_server_port} accept - tomcat":
port => [$::tomcat::jmx_registry_port, $::tomcat::jmx_server_port],
proto => 'tcp',
action => 'accept'
}
}
}
9 changes: 9 additions & 0 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -544,5 +544,14 @@
action => 'accept'
}
}

# jmx
if $jmx_listener {
firewall { "${jmx_registry_port}/${jmx_server_port} accept - tomcat (${name})":
port => [$jmx_registry_port, $jmx_server_port],
proto => 'tcp',
action => 'accept'
}
}
}
}

0 comments on commit 691eb22

Please sign in to comment.