fix bug in deploy

This commit is contained in:
fumingwei
2020-10-27 12:14:25 +06:00
parent dc9336ae26
commit bda0faa7ff
44 changed files with 1676 additions and 100 deletions

Binary file not shown.

View File

@@ -24,9 +24,24 @@
name:
- "/tmp/ansible_deploy/tsg-diagnose-20.10.01.7041374-1.el7.x86_64.rpm"
state: present
- name: "tsg-diagnose init certs"
shell: /bin/sh /opt/tsg/tsg-diagnose/deploy/init_certs/init_badssl_certs.sh
- name: "Templates tsg-diagnose.config"
template:
src: "{{role_path}}/templates/tsg-diagnose.config.j2"
dest: /opt/tsg/tsg-diagnose/etc/tsg-diagnose.config
tags: template
- name: "tsg-diagnose:mkdir -p .badssl_cert_dict"
file:
path: /opt/tsg/tsg-diagnose/.badssl_cert_dict
state: directory
- name: "tsg-diagnose: unarchive certs"
unarchive:
src: /tmp/ansible_deploy/tsg-diagnose-certs.tgz
dest: /opt/tsg/tsg-diagnose/.badssl_cert_dict
remote_src: yes
- name: "copy memory limit file to tsg-diagnose.service.d"
copy:

View File

@@ -0,0 +1,135 @@
[test_securityPolicy_bypass]
# enabled = 1 run this case
enabled = 1
#Connection TIMEOUT, in seconds
conn_timeout = 1
#max_recv_speed_large byte/s
max_recv_speed_large = 6553600
[test_securityPolicy_intercept]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_securityPolicy_intercept_certerrExpired]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_securityPolicy_intercept_certerrSelf_signed]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_securityPolicy_intercept_certerrUntrusted_root]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_proxyPolicy_ssl_redirect]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_proxyPolicy_ssl_block]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_proxyPolicy_ssl_replace]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_proxyPolicy_ssl_hijack]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_proxyPolicy_ssl_insert]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_proxyPolicy_http_redirect]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_proxyPolicy_http_block]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_proxyPolicy_http_replace]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_proxyPolicy_http_hijack]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_proxyPolicy_http_insert]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_https_con_traffic_1k]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_https_con_traffic_4k]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_https_con_traffic_16k]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_https_con_traffic_64k]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_https_con_traffic_256k]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_https_con_traffic_1M]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_https_con_traffic_4M]
enabled = 1
conn_timeout = 1
max_recv_speed_large = 6553600
[test_https_con_traffic_16M]
enabled = 1
conn_timeout = 4
max_recv_speed_large = 6553600
[test_https_con_traffic_64M]
enabled = 1
conn_timeout = 12
max_recv_speed_large = 6553600
[start_time_random_delay_range]
enabled = 1
#Left_edge is the left edge of the randomly generated time in seconds
left_edge = 0
#Left_edge is the right edge of the randomly generated time in seconds
right_edge = 30
[telegraf]
host = 192.51.100.1
port = 58100
tags_key = app_name
tags_value = tsg-diagnose