Commit d154ca24 authored by Boxiang Sun's avatar Boxiang Sun

Adjust the goproxy and allow other ports for Python 2 SR tests

parent 71acbb46
...@@ -100,7 +100,12 @@ ...@@ -100,7 +100,12 @@
- name: Change the goproxy in the hosts - name: Change the goproxy in the hosts
lineinfile: lineinfile:
line: "47.246.20.229 goproxy.cn" line: "120.221.249.220 goproxy.cn"
dest: /etc/hosts
- name: Change the goproxy.cn(qiniucs.com) in the hosts
lineinfile:
line: "47.246.44.230 s3-cn-south-1.qiniucs.com"
dest: /etc/hosts dest: /etc/hosts
- name: Change the rubygems/bundle in the hosts - name: Change the rubygems/bundle in the hosts
...@@ -329,6 +334,24 @@ ...@@ -329,6 +334,24 @@
destination: goproxy.cn destination: goproxy.cn
jump: ACCEPT jump: ACCEPT
- name: Allow to access qiniucs.com(goproxy.cn)
iptables:
action: append
chain: OUTPUT
protocol: tcp
destination_port: 443
destination: s3-cn-south-1.qiniucs.com
jump: ACCEPT
- name: Allow to access the service behind goproxy.cn
iptables:
action: append
chain: OUTPUT
protocol: tcp
destination_port: 443
destination: 47.246.44.226
jump: ACCEPT
- name: Change the codeload.github.com in the hosts - name: Change the codeload.github.com in the hosts
lineinfile: lineinfile:
line: "140.82.121.9 codeload.github.com" line: "140.82.121.9 codeload.github.com"
...@@ -663,6 +686,39 @@ ...@@ -663,6 +686,39 @@
destination: 2001:67c:1254:105:28ad::d94 destination: 2001:67c:1254:105:28ad::d94
jump: ACCEPT jump: ACCEPT
# Required by the SR slapos-master
- name: Allow to access localhost:8003
iptables:
ip_version: ipv6
action: append
chain: OUTPUT
protocol: tcp
destination_port: 8003
destination: 2001:67c:1254:105:28ad::d94
jump: ACCEPT
# Required by the SR slapos-master
- name: Allow to access localhost:8002
iptables:
ip_version: ipv6
action: append
chain: OUTPUT
protocol: tcp
destination_port: 8002
destination: 2001:67c:1254:105:28ad::d94
jump: ACCEPT
# Required by the SR slapos-master
- name: Allow to access localhost:2204
iptables:
ip_version: ipv6
action: append
chain: OUTPUT
protocol: tcp
destination_port: 2204
destination: 2001:67c:1254:105:28ad::d94
jump: ACCEPT
# Required by the SR slapos-master # Required by the SR slapos-master
- name: Allow to access localhost:2156 - name: Allow to access localhost:2156
iptables: iptables:
...@@ -740,6 +796,28 @@ ...@@ -740,6 +796,28 @@
destination: 2001:67c:1254:105:28ad::d94 destination: 2001:67c:1254:105:28ad::d94
jump: ACCEPT jump: ACCEPT
# Required by the SR slapos-master
- name: Allow to access localhost:2153
iptables:
ip_version: ipv6
action: append
chain: OUTPUT
protocol: tcp
destination_port: 2153
destination: 2001:67c:1254:105:28ad::d94
jump: ACCEPT
# Required by the SR matomo
- name: Allow to access localhost:9988
iptables:
ip_version: ipv6
action: append
chain: OUTPUT
protocol: tcp
destination_port: 9988
destination: 2001:67c:1254:105:28ad::d94
jump: ACCEPT
# Required by the SR html5as # Required by the SR html5as
- name: Allow to access localhost:8198 - name: Allow to access localhost:8198
iptables: iptables:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment