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

Commit

Permalink
#2 parameterize addl services in iptables
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed Mar 3, 2016
1 parent 8fe1b7d commit c4d9770
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/docker/templates/compose.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ user_preferences:
environment:
- JAVA_TOOL_OPTIONS="-Xmx512M"
ports:
- "{{user_preferences.port}} :60000"
- "{{user_preferences.port}}:60000"
log_driver: "syslog"
log_opt:
syslog-tag: user-preferences
Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/iptables/templates/iptables.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-A INPUT -m state --state NEW -m tcp -p tcp -s {{ net.dmz }} --dport 389 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp -s {{ net.dmz }} --dport 443 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp -s {{ net.dmz }} --dport 8443 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp -s {{ net.trust }} --dport 8443 -j ACCEPT

{% endif %}

{% if inventory_hostname in groups['condor'] %}
Expand Down

0 comments on commit c4d9770

Please sign in to comment.