First commit, at K18-2 Control Center.

This commit is contained in:
k18ceiec
2020-10-24 12:08:31 +06:00
commit dc9336ae26
223 changed files with 7222 additions and 0 deletions

View 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

View File

@@ -0,0 +1,28 @@
- name: "copy packet_dump rpm to destination server"
copy:
src: "{{ role_path }}/files/packet_dump-1.0.4.82e85d1-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.4.82e85d1-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: "start packet_dump"
systemd:
name: packet_dump.service
enabled: yes
daemon_reload: yes

View File

@@ -0,0 +1,14 @@
[KAFKA]
BROKER_LIST={{ log_kafkabrokers.address }}
[SYSTEM]
NIC_NAME={{ nic_mgr.name }}
LOG_LEVEL={{ packet_dump_log_level }}
LOG_PATH=log/packet_dump
[breakpad]
disable_coredump=0
enable_breakpad=1
breakpad_minidump_dir=/tmp/packet_dump/crashreport
enable_breakpad_upload=0
breakpad_upload_url={{ breakpad_upload_url }}