添加自检安装部署

This commit is contained in:
fumingwei
2021-02-08 09:21:47 +08:00
parent 41f8a0c8da
commit bd3bcd1e91
15 changed files with 341 additions and 1 deletions

Binary file not shown.

View File

@@ -0,0 +1,38 @@
- name: "Tsg-diagnose:copy file to device"
copy:
src: '{{ role_path }}/files/'
dest: /tmp/ansible_deploy/
- name: "Install tsg-diagnose rpm package"
yum:
name:
- "/tmp/ansible_deploy/tsg-diagnose-20.10.03.31f1c1f-1.el7.x86_64.rpm"
state: present
- 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: 'Tsg-diagnose service start'
systemd:
name: tsg-diagnose
enabled: yes
daemon_reload: yes
state: started
- name: "tsg-diagnose init rsync deamon"
shell: /bin/sh /opt/tsg/tsg-diagnose/deploy/rsync/init_rsyncd.sh

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