OMPUB-159:新增v21.06适配mirror流量的DPI安装包

This commit is contained in:
fumingwei
2021-07-06 14:48:40 +08:00
parent 3322c11ad9
commit e3977b920e
236 changed files with 218 additions and 9473 deletions

View File

@@ -1,19 +0,0 @@
[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

View File

@@ -1,63 +0,0 @@
- name: "copy packet_dump rpm to destination server"
copy:
src: "{{ role_path }}/files/packet_dump-1.0.8.2e723ab-2.el7.x86_64.rpm"
dest: /tmp/ansible_deploy/
- name: "copy packet_dump.service to destination server"
copy:
src: "{{ role_path }}/files/packet_dump.service"
dest: /usr/lib/systemd/system
mode: 0755
- name: "install packet_dump rpm from localhost"
yum:
name:
- /tmp/ansible_deploy/packet_dump-1.0.8.2e723ab-2.el7.x86_64.rpm
state: present
- name: "Template the packet_dump.conf"
template:
src: "{{ role_path }}/templates/packet_dump.conf.j2"
dest: /home/mesasoft/packet_dump/conf/packet_dump.conf
tags: template
- name: "create /var/www/html/troubleshooting"
file:
path: /var/www/html/troubleshooting
state: directory
- name: "mkdir /opt/packet-dump-exporter/"
file:
path: /opt/packet-dump-exporter/
state: directory
- name: "copy systemd_exporter"
copy:
src: '{{ role_path }}/files/systemd_exporter'
dest: /opt/packet-dump-exporter/systemd_exporter
mode: 0755
- name: "templates packet-dump-exporter-systemd.service"
template:
src: "{{role_path}}/templates/packet-dump-exporter-systemd.service.j2"
dest: /usr/lib/systemd/system/packet-dump-exporter-systemd.service
tags: template
- name: "start packet_dump"
systemd:
name: packet_dump.service
enabled: yes
daemon_reload: yes
- name: "enable httpd"
systemd:
name: httpd
enabled: yes
daemon_reload: yes
- name: 'packet-dump-exporter-systemd service start'
systemd:
name: packet-dump-exporter-systemd
enabled: yes
daemon_reload: yes
state: restarted

View File

@@ -1,11 +0,0 @@
[Unit]
Description=Systemd Exporter
After=network.target
[Service]
Type=simple
ExecStart=/opt/packet-dump-exporter/systemd_exporter --web.disable-exporter-metrics
Restart=always
[Install]
WantedBy=multi-user.target

View File

@@ -1,17 +0,0 @@
[KAFKA]
BROKER_LIST={{ log_kafkabrokers.address | join(",")}}
KAFKA_OFFSET=largest
[SYSTEM]
NIC_NAME={{ nic_mgr.name }}
LOG_LEVEL={{ packet_dump_log_level }}
LOG_PATH=log/packet_dump
PCAPNG_FILEPATH_PREFIX=/troubleshooting/
PCAPNG_BASEPATH_PREFIX=/var/www/html/
[breakpad]
disable_coredump=1
enable_breakpad=1
breakpad_minidump_dir=/tmp/packet_dump/crashreport
enable_breakpad_upload=1
breakpad_upload_url={{ breakpad_upload_url }}