Compare commits
15 Commits
tsg-versio
...
tsg-versio
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1818d305d9 | ||
|
|
8beaf16134 | ||
|
|
43d1a13cde | ||
|
|
5349fd24fb | ||
|
|
344c734f70 | ||
|
|
ed6f5c3d3b | ||
|
|
aeee8afab9 | ||
|
|
67ae52725b | ||
|
|
b0c9ea045b | ||
|
|
9d9b8ad83c | ||
|
|
1c5ea5b740 | ||
|
|
7800356765 | ||
|
|
11bf3dfa8e | ||
|
|
3fdae02a52 | ||
|
|
f0725b0e02 |
@@ -9,6 +9,7 @@
|
||||
roles:
|
||||
- framework
|
||||
- kernel-ml
|
||||
- telegraf_collect
|
||||
|
||||
- hosts: adc_mxn
|
||||
remote_user: root
|
||||
@@ -114,6 +115,7 @@
|
||||
- cert-redis
|
||||
- tfe
|
||||
- telegraf_statistic
|
||||
- telegraf_collect
|
||||
- proxy_status
|
||||
# - tsg_device_tag
|
||||
- reboot
|
||||
|
||||
BIN
dpi_2109_deploy.zip
Normal file
BIN
dpi_2109_deploy.zip
Normal file
Binary file not shown.
@@ -106,4 +106,6 @@ app_sketch_local_log_level: 10
|
||||
app_control_plug_log_level: 10
|
||||
|
||||
|
||||
breakpad_upload_url: http://127.0.0.1/
|
||||
breakpad_upload_url: http://127.0.0.1/
|
||||
|
||||
tsg_master_entrance_id: 0
|
||||
@@ -60,7 +60,7 @@ pangu_log_level: DEBUG
|
||||
doh_log_level: DEBUG
|
||||
|
||||
certstore_log_level: 10
|
||||
clotho_log_level: 10
|
||||
packet_dump_log_level: 10
|
||||
|
||||
#########################################
|
||||
#Sapp Performance Config
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@
|
||||
yum:
|
||||
name:
|
||||
- /tmp/ansible_deploy/emqx-centos7-v4.1.2.x86_64.rpm
|
||||
- /tmp/ansible_deploy/app-sketch-global-1.0.2.20200918.ab44d17-1.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/app-sketch-global-1.0.3.202010.a7b2e40-1.el7.x86_64.rpm
|
||||
state: present
|
||||
|
||||
- name: "template the app_sketch_global.conf"
|
||||
@@ -25,9 +25,12 @@
|
||||
name: emqx.service
|
||||
state: started
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
|
||||
- name: "Start app-sketch-global"
|
||||
systemd:
|
||||
name: app-sketch-global.service
|
||||
state: started
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
Binary file not shown.
Binary file not shown.
2
roles/certstore/files/memory.conf
Normal file
2
roles/certstore/files/memory.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
MemoryMax=10G
|
||||
@@ -10,7 +10,7 @@
|
||||
- name: install certstore
|
||||
yum:
|
||||
name:
|
||||
- /tmp/ansible_deploy/certstore-2.1.2.20200923.a36312c-1.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/certstore-2.1.3.202010.81eef83-1.el7.x86_64.rpm
|
||||
state: present
|
||||
|
||||
- name: template certstore configure file
|
||||
@@ -23,6 +23,12 @@
|
||||
src: "{{ role_path }}/templates/zlog.conf.j2"
|
||||
dest: /opt/tsg/certstore/conf/zlog.conf
|
||||
|
||||
- name: "copy memory limit file to certstore.service.d"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/memory.conf"
|
||||
dest: /etc/systemd/system/certstore.service.d/
|
||||
mode: 0644
|
||||
|
||||
- name: "start certstore"
|
||||
systemd:
|
||||
name: certstore.service
|
||||
|
||||
Binary file not shown.
BIN
roles/kni/files/kni-20.10.20201019.3f20d93-2.el7.x86_64.rpm
Normal file
BIN
roles/kni/files/kni-20.10.20201019.3f20d93-2.el7.x86_64.rpm
Normal file
Binary file not shown.
@@ -7,8 +7,9 @@
|
||||
- name: "install kni rpms from localhost"
|
||||
yum:
|
||||
name:
|
||||
- /tmp/ansible_deploy/kni-20.10.20201014.6d458ba-1.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/kni-20.10.20201019.3f20d93-2.el7.x86_64.rpm
|
||||
state: present
|
||||
skip_broken: yes
|
||||
|
||||
- name: Template the kni.conf
|
||||
template:
|
||||
|
||||
2
roles/mrzcpd/files/memory.conf
Normal file
2
roles/mrzcpd/files/memory.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
MemoryMax=100G
|
||||
@@ -161,12 +161,18 @@
|
||||
daemon_reload: yes
|
||||
when: nic_traffic_mirror is defined
|
||||
|
||||
- name: "copy memory limit file to tfe.service.d"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/memory.conf"
|
||||
dest: /etc/systemd/system/mrzcpd.service.d/
|
||||
mode: 0644
|
||||
|
||||
- name: "mask mrzcpd on server_tun_mode"
|
||||
systemd:
|
||||
name: mrzcpd
|
||||
enabled: no
|
||||
masked: yes
|
||||
daemon_reload: yes
|
||||
when:
|
||||
- tsg_access_type == 0
|
||||
|
||||
@@ -175,5 +181,6 @@
|
||||
name: mrtunnat
|
||||
enabled: no
|
||||
masked: yes
|
||||
daemon_reload: yes
|
||||
when:
|
||||
- tsg_access_type == 0
|
||||
|
||||
19
roles/packet_dump/files/packet_dump.service
Normal file
19
roles/packet_dump/files/packet_dump.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=packet dump service
|
||||
After=After=network.target
|
||||
|
||||
[Service]
|
||||
Type=fork
|
||||
WorkingDirectory=/home/mesasoft/packet_dump
|
||||
ExecStart=/home/mesasoft/packet_dump/packet_dump
|
||||
TimeoutSec=60s
|
||||
RestartSec=10s
|
||||
Restart=always
|
||||
LimitNOFILE=524288
|
||||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
TasksMax=infinity
|
||||
Delegate=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -11,4 +11,4 @@ disable_coredump=0
|
||||
enable_breakpad=1
|
||||
breakpad_minidump_dir=/tmp/packet_dump/crashreport
|
||||
enable_breakpad_upload=0
|
||||
breakpad_upload_url={{ breakpad_upload }}
|
||||
breakpad_upload_url={{ breakpad_upload_url }}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
copy:
|
||||
src: "{{ role_path }}/files/proxy-status.service"
|
||||
dest: "/usr/lib/systemd/system/"
|
||||
mode: 0755
|
||||
mode: 0644
|
||||
|
||||
- name: "enable proxy-status"
|
||||
systemd:
|
||||
|
||||
2
roles/sapp/files/memory.conf
Normal file
2
roles/sapp/files/memory.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
MemoryMax=100G
|
||||
BIN
roles/sapp/files/sapp-4.1.12.b8f6ea4-2.el7.x86_64.rpm
Normal file
BIN
roles/sapp/files/sapp-4.1.12.b8f6ea4-2.el7.x86_64.rpm
Normal file
Binary file not shown.
@@ -11,7 +11,7 @@
|
||||
{% endif %}
|
||||
./plug/platform/tsg_master/tsg_master.inf
|
||||
{% if tsg_app_enable == 1 %}
|
||||
./plug/business/app_proto_identify/app_proto_identify.inf
|
||||
./plug/platform/app_proto_identify/app_proto_identify.inf
|
||||
./plug/platform/app_master/app_master.inf
|
||||
{% endif %}
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
./plug/protocol/quic/quic.inf
|
||||
|
||||
[business]
|
||||
./plug/business/tsg_conn_sketch/tsg_conn_sketch.inf
|
||||
./plug/business/capture_packet_plug/capture_packet_plug.inf
|
||||
./plug/business/kni/kni.inf
|
||||
./plug/business/fw_ssl_plug/fw_ssl_plug.inf
|
||||
./plug/business/fw_http_plug/fw_http_plug.inf
|
||||
@@ -31,8 +33,7 @@
|
||||
./plug/business/fw_mail_plug/fw_mail_plug.inf
|
||||
./plug/business/fw_ftp_plug/fw_ftp_plug.inf
|
||||
./plug/business/fw_quic_plug/fw_quic_plug.inf
|
||||
./plug/business/tsg_conn_sketch/tsg_conn_sketch.inf
|
||||
./plug/business/capture_packet_plug/capture_packet_plug.inf
|
||||
./plug/business/conn_telemetry/conn_telemetry.inf
|
||||
{% if tsg_app_enable == 1 %}
|
||||
./plug/business/app_sketch_local/app_sketch_local.inf
|
||||
./plug/business/app_control_plug/app_control_plug.inf
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
copy:
|
||||
src: "{{ role_path }}/files/telegraf_collect.service"
|
||||
dest: /usr/lib/systemd/system
|
||||
mode: 0755
|
||||
mode: 0644
|
||||
|
||||
- name: "Start telegraf_collect"
|
||||
systemd:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[global_tags]
|
||||
blade = {{bladename}}
|
||||
blade = "{{bladename}}"
|
||||
[agent]
|
||||
interval = "5s"
|
||||
round_interval = true
|
||||
|
||||
@@ -19,10 +19,11 @@
|
||||
copy:
|
||||
src: "{{ role_path }}/files/telegraf_statistic.service"
|
||||
dest: /usr/lib/systemd/system
|
||||
mode: 0755
|
||||
mode: 0644
|
||||
|
||||
- name: "Start telegraf"
|
||||
systemd:
|
||||
name: telegraf_statistic.service
|
||||
state: started
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
@@ -56,4 +56,4 @@
|
||||
|
||||
[[outputs.influxdb]]
|
||||
urls = ["{{ monitor_outputs_influxdb.url }}"]
|
||||
database = "tsg_stat
|
||||
database = "tsg_stat"
|
||||
2
roles/tfe/files/memory.conf
Normal file
2
roles/tfe/files/memory.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
MemoryMax=100G
|
||||
Binary file not shown.
BIN
roles/tfe/files/tfe-4.3.14.13d2607-1.el7.x86_64.rpm
Normal file
BIN
roles/tfe/files/tfe-4.3.14.13d2607-1.el7.x86_64.rpm
Normal file
Binary file not shown.
@@ -8,13 +8,13 @@
|
||||
copy:
|
||||
src: "{{ role_path }}/files/tfe.service"
|
||||
dest: /usr/lib/systemd/system/
|
||||
mode: 0755
|
||||
mode: 0644
|
||||
|
||||
- name: "install tfe rpms from localhost"
|
||||
yum:
|
||||
name:
|
||||
- /tmp/ansible_deploy/tfe-kmod-v1.0.5.20200408-1dkms.noarch.rpm
|
||||
- /tmp/ansible_deploy/tfe-4.3.12.be94218-1.el7.x86_64.rpm
|
||||
- /tmp/ansible_deploy/tfe-4.3.14.13d2607-1.el7.x86_64.rpm
|
||||
state: present
|
||||
|
||||
- name: "template tfe-env config"
|
||||
@@ -63,6 +63,12 @@
|
||||
src: "{{ role_path }}/templates/require-mrzcpd.conf.j2"
|
||||
dest: /etc/systemd/system/tfe.service.d/require-mrzcpd.conf
|
||||
|
||||
- name: "copy memory limit file to tfe.service.d"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/memory.conf"
|
||||
dest: /etc/systemd/system/tfe.service.d/
|
||||
mode: 0644
|
||||
|
||||
- name: "enable tfe-env"
|
||||
systemd:
|
||||
name: tfe-env
|
||||
|
||||
2
roles/tsg-diagnose/files/memory.conf
Normal file
2
roles/tsg-diagnose/files/memory.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
[Service]
|
||||
MemoryMax=100G
|
||||
@@ -28,6 +28,12 @@
|
||||
- name: "tsg-diagnose init certs"
|
||||
shell: /bin/sh /opt/tsg/tsg-diagnose/deploy/init_certs/init_badssl_certs.sh
|
||||
|
||||
- name: "copy memory limit file to tsg-diagnose.service.d"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/memory.conf"
|
||||
dest: /etc/systemd/system/tsg-diagnose.service.d/
|
||||
mode: 0644
|
||||
|
||||
- name: 'Tsg-diagnose service start'
|
||||
systemd:
|
||||
name: tsg-diagnose
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
shell: rsync -avzP --delete 192.168.100.1::blade0toother /tmp/sync/
|
||||
|
||||
- name: "tsg-diagnose: add badssl ca file to tfe tls-ca-bundle"
|
||||
shell: cat /tmp/sync/ca-root.crt >> /opt/tsg/tfe/resource/tfe/tsg_diagnose_ca.pem && cat /tmp/sync/wpr_cert.pem >> /opt/tsg/tfe/resource/tfe/tsg_diagnose_ca.pem
|
||||
shell: cat /tmp/sync/ca-root.crt > /opt/tsg/tfe/resource/tfe/tsg_diagnose_ca.pem && cat /tmp/sync/wpr_cert.pem >> /opt/tsg/tfe/resource/tfe/tsg_diagnose_ca.pem
|
||||
|
||||
|
||||
16
uninstall/roles/packet_dump/tasks/main.yml
Normal file
16
uninstall/roles/packet_dump/tasks/main.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
####################
|
||||
#Uninstall packet_dump
|
||||
- name: "[uninstall packet_dump] stop packet_dump"
|
||||
systemd:
|
||||
name: packet_dump
|
||||
state: stopped
|
||||
enabled: no
|
||||
when: uninstall.packet_dump == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall packet_dump] uninstall packet_dump"
|
||||
yum:
|
||||
name:
|
||||
- "{{ packet_dump }}"
|
||||
state: absent
|
||||
when: uninstall.packet_dump == 1
|
||||
@@ -41,6 +41,7 @@ tfe=`rpm -qa |grep ^tfe-4`
|
||||
tfe_kmod=`rpm -qa |grep ^tfe-kmod`
|
||||
http_healthcheck=`rpm -qa |grep ^http_healthcheck`
|
||||
clotho=`rpm -qa |grep ^clotho`
|
||||
packet_dump=`rpm -qa |grep ^packet_dump`
|
||||
certstore=`rpm -qa |grep ^certstore`
|
||||
|
||||
|
||||
@@ -125,6 +126,9 @@ http_healthcheck: $http_healthcheck
|
||||
#clotho
|
||||
clotho: $clotho
|
||||
|
||||
#packet_dump
|
||||
packet_dump: $packet_dump
|
||||
|
||||
#####################
|
||||
#certstore
|
||||
certstore: $certstore
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
- certstore
|
||||
- cert_redis
|
||||
- clotho
|
||||
- packet_dump
|
||||
- http_healthcheck
|
||||
- framework
|
||||
- telegraf_statistic
|
||||
@@ -45,6 +46,7 @@
|
||||
- certstore
|
||||
- cert_redis
|
||||
- clotho
|
||||
- packet_dump
|
||||
- http_healthcheck
|
||||
- framework
|
||||
- telegraf_statistic
|
||||
|
||||
Reference in New Issue
Block a user