修改 clotho 为 package_dump
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
dest: /opt/mrzcpd/etc/mrtunnat.conf
|
||||
when:
|
||||
- nic_traffic_mirror is not defined
|
||||
- tsg_access_type == 3
|
||||
- == 3
|
||||
|
||||
- name: "update mrtunnat.conf.ATCA_Vlan_Flipping"
|
||||
template:
|
||||
|
||||
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 }}
|
||||
|
||||
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