File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ auth_proxy_key: "{{ contiv_certs }}/auth_proxy_key.pem"
6
6
auth_proxy_datastore : " {{ cluster_store }}"
7
7
auth_proxy_binaries : " /var/contiv_cache"
8
8
auth_proxy_local_install : False
9
+ auth_proxy_rule_comment : " Contiv auth proxy service"
Original file line number Diff line number Diff line change 2
2
3
3
- name : stop auth-proxy container
4
4
service : name=auth-proxy state=stopped
5
+
6
+ - name : cleanup iptables for auth proxy
7
+ shell : iptables -D INPUT -p tcp --dport {{ item }} -j ACCEPT -m comment --comment "{{ auth_proxy_rule_comment }} ({{ item }})"
8
+ become : true
9
+ with_items :
10
+ - " {{ auth_proxy_port }}"
Original file line number Diff line number Diff line change 1
1
---
2
2
# tasks file for auth_proxy
3
+ - name : setup iptables for auth proxy
4
+ shell : >
5
+ ( iptables -L INPUT | grep "{{ auth_proxy_rule_comment }} ({{ item }})" ) || \
6
+ iptables -I INPUT 1 -p tcp --dport {{ item }} -j ACCEPT -m comment --comment "{{ auth_proxy_rule_comment }} ({{ item }})"
7
+ become : true
8
+ with_items :
9
+ - " {{ auth_proxy_port }}"
3
10
4
11
# Load the auth-proxy-image from local tar. Ignore any errors to handle the
5
12
# case where the image is not built in
You can’t perform that action at this time.
0 commit comments