更新sapp配置文件模板; 更新pcapng存储程序;
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
- firewall
|
- firewall
|
||||||
- tsg_app
|
- tsg_app
|
||||||
- http_healthcheck
|
- http_healthcheck
|
||||||
- clotho
|
- packet_dump
|
||||||
- certstore
|
- certstore
|
||||||
- cert-redis
|
- cert-redis
|
||||||
- telegraf_statistic
|
- telegraf_statistic
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
- firewall
|
- firewall
|
||||||
- tsg_app
|
- tsg_app
|
||||||
- http_healthcheck
|
- http_healthcheck
|
||||||
- clotho
|
- packet_dump
|
||||||
- certstore
|
- certstore
|
||||||
- cert-redis
|
- cert-redis
|
||||||
- tfe
|
- tfe
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ pangu_log_level: DEBUG
|
|||||||
doh_log_level: DEBUG
|
doh_log_level: DEBUG
|
||||||
|
|
||||||
certstore_log_level: 10
|
certstore_log_level: 10
|
||||||
clotho_log_level: 10
|
packet_dump_log_level: 10
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
#Sapp Performance Config
|
#Sapp Performance Config
|
||||||
|
|||||||
Binary file not shown.
@@ -1,13 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=clotho
|
|
||||||
After=network.target
|
|
||||||
After=network-online.target
|
|
||||||
Wants=network-online.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=/home/mesasoft/clotho/clotho
|
|
||||||
ExecStop=killall clotho
|
|
||||||
Type=forking
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
- name: "copy clotho rpm to destination server"
|
|
||||||
copy:
|
|
||||||
src: "{{ role_path }}/files/clotho-debug-1.0.0.-1.el7.x86_64.rpm"
|
|
||||||
dest: /tmp/ansible_deploy/
|
|
||||||
|
|
||||||
- name: "copy clotho.service to destination server"
|
|
||||||
copy:
|
|
||||||
src: "{{ role_path }}/files/clotho.service"
|
|
||||||
dest: /usr/lib/systemd/system
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: "install clotho rpm from localhost"
|
|
||||||
yum:
|
|
||||||
name:
|
|
||||||
- /tmp/ansible_deploy/clotho-debug-1.0.0.-1.el7.x86_64.rpm
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: "Template the clotho.conf"
|
|
||||||
template:
|
|
||||||
src: "{{ role_path }}/templates/clotho.conf.j2"
|
|
||||||
dest: /home/mesasoft/clotho/conf/clotho.conf
|
|
||||||
tags: template
|
|
||||||
|
|
||||||
- name: "start clotho"
|
|
||||||
systemd:
|
|
||||||
name: clotho.service
|
|
||||||
enabled: yes
|
|
||||||
daemon_reload: yes
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
[KAFKA]
|
|
||||||
BROKER_LIST={{ log_kafkabrokers.address }}
|
|
||||||
|
|
||||||
[SYSTEM]
|
|
||||||
NIC_NAME={{ nic_mgr.name }}
|
|
||||||
LOG_LEVEL={{ clotho_log_level }}
|
|
||||||
LOG_PATH=log/clotho
|
|
||||||
Binary file not shown.
29
roles/packet_dump/tasks/main.yml
Normal file
29
roles/packet_dump/tasks/main.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
- name: "copy packet_dump rpm to destination server"
|
||||||
|
copy:
|
||||||
|
src: "{{ role_path }}/files/packet_dump-1.0.2.90c24cb-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.2.90c24cb-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
|
||||||
|
|
||||||
14
roles/packet_dump/templates/packet_dump.conf.j2
Normal file
14
roles/packet_dump/templates/packet_dump.conf.j2
Normal 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 }}
|
||||||
@@ -103,6 +103,7 @@ BSD_packet_filter=""
|
|||||||
### note, if "file_truncate_open_enabled=1", file will be truncated, otherwise open the file for appending.
|
### note, if "file_truncate_open_enabled=1", file will be truncated, otherwise open the file for appending.
|
||||||
file_truncate_enabled = 1
|
file_truncate_enabled = 1
|
||||||
log_file_name = "fs2_sysinfo.log"
|
log_file_name = "fs2_sysinfo.log"
|
||||||
|
log_conf_name = "etc/sapp_log.conf"
|
||||||
|
|
||||||
[profiling.log.remote]
|
[profiling.log.remote]
|
||||||
enabled=1
|
enabled=1
|
||||||
|
|||||||
Reference in New Issue
Block a user