1、增加部分变量注释
2、增加sapp,mrzcpd部署完以后自启动
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
1、部署执行命令:
|
1、部署执行命令:
|
||||||
ansible-playbook -i install_config/hosts paltform_deploy.yml
|
ansible-playbook -i install_config/hosts platform_deploy.yml
|
||||||
2、卸载paltform 部署命令所安装的rpm包:
|
2、卸载paltform 部署命令所安装的rpm包:
|
||||||
ansible-playbook -i install_config/hosts tasks/uninstall/uninstall_platform.yml
|
ansible-playbook -i install_config/hosts tasks/uninstall/uninstall_platform.yml
|
||||||
3、查询安装rpm情况命令:
|
3、查询安装rpm情况命令:
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ sapp:
|
|||||||
inbound_route_dir: 1
|
inbound_route_dir: 1
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#Sapp Double-Arm Config
|
#config for sapp nic that data comming
|
||||||
packet_io:
|
packet_io:
|
||||||
internal_interface:
|
internal_interface:
|
||||||
- eth2
|
- eth2
|
||||||
@@ -42,8 +42,17 @@ packet_io:
|
|||||||
- eth3
|
- eth3
|
||||||
|
|
||||||
|
|
||||||
|
####for example: more than one nics that need to config
|
||||||
|
#packet_io:
|
||||||
|
# internal_interface:
|
||||||
|
# - internal_nic1
|
||||||
|
# - internal_nic2
|
||||||
|
# external_interface:
|
||||||
|
# - external_nic1
|
||||||
|
# - external_nic2
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#Marsio Config
|
#config for mrzcpd cpu cores to bind
|
||||||
mrzcpd:
|
mrzcpd:
|
||||||
iocore: 39
|
iocore: 39
|
||||||
|
|
||||||
@@ -51,23 +60,27 @@ mrtunnat:
|
|||||||
lcore_id: 38
|
lcore_id: 38
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
#Inline Device Config list
|
#config for mrzcpd nic that data comming.
|
||||||
inline_device_config_list:
|
inline_device_config_list:
|
||||||
- keepalive_ip: 192.168.1.30
|
- keepalive_ip: 192.168.1.30
|
||||||
keepalive_mask: 255.255.255.252
|
keepalive_mask: 255.255.255.252
|
||||||
data_incoming: eth5
|
data_incoming: eth5
|
||||||
|
|
||||||
####for example:
|
####for example: more than one nics that need to config
|
||||||
#inline_device_config_list:
|
#inline_device_config_list:
|
||||||
# - keepalive_ip: 192.168.1.30
|
# - keepalive_ip: ###填写ip地址,不能为空,如果没有需求,应填写默认地址为127.0.0.1######
|
||||||
# keepalive_mask: 255.255.255.252
|
# keepalive_mask: ###填写ip掩码,不能为空,如果没有需求,应填写默认地址为127.0.0.1######
|
||||||
# data_incoming: eth5
|
# data_incoming: instance_nic1
|
||||||
# - keepalive_ip: 192.168.1.30
|
# - keepalive_ip: ###填写地址,不能为空,如果没有需求,应填写默认地址为127.0.0.1######
|
||||||
# keepalive_mask: 255.255.255.252
|
# keepalive_mask: ###填写ip掩码,不能为空,如果没有需求,应填写默认地址为127.0.0.1######
|
||||||
# data_incoming: eth6
|
# data_incoming: instance_nic2
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
sapp_prometheus_enable: 1
|
sapp_prometheus_enable: 1
|
||||||
sapp_prometheus_port: 9273
|
sapp_prometheus_port: 9273
|
||||||
sapp_prometheus_url_path: "/metrics"
|
sapp_prometheus_url_path: "/metrics"
|
||||||
|
|
||||||
|
#########below variables are not to be modified
|
||||||
|
##程序breakpad_upload_url崩溃上传core 文件url
|
||||||
|
breakpad_upload_url: "http://127.0.0.1/test"
|
||||||
@@ -18,4 +18,9 @@
|
|||||||
- /tmp/ansible_deploy/quic-1.1.17.8c22b4d-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/quic-1.1.17.8c22b4d-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/ssl-1.0.12.16b8fb5-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/ssl-1.0.12.16b8fb5-2.el7.x86_64.rpm
|
||||||
|
|
||||||
|
- name: "start sapp"
|
||||||
|
systemd:
|
||||||
|
name: sapp
|
||||||
|
enabled: yes
|
||||||
|
daemon_reload: yes
|
||||||
|
state: started
|
||||||
@@ -35,6 +35,7 @@
|
|||||||
name: mrenv
|
name: mrenv
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
state: started
|
||||||
when:
|
when:
|
||||||
- capture_packet_type == 1
|
- capture_packet_type == 1
|
||||||
|
|
||||||
@@ -43,6 +44,7 @@
|
|||||||
name: mrzcpd
|
name: mrzcpd
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
state: started
|
||||||
when:
|
when:
|
||||||
- capture_packet_type == 1
|
- capture_packet_type == 1
|
||||||
|
|
||||||
@@ -51,12 +53,14 @@
|
|||||||
name: mrapm_device
|
name: mrapm_device
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
state: started
|
||||||
|
|
||||||
- name: "enable prometheus output - monit_stream"
|
- name: "enable prometheus output - monit_stream"
|
||||||
systemd:
|
systemd:
|
||||||
name: mrapm_stream
|
name: mrapm_stream
|
||||||
enabled: yes
|
enabled: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
state: started
|
||||||
|
|
||||||
- name: "mask mrzcpd on capture_packet_type is pcap"
|
- name: "mask mrzcpd on capture_packet_type is pcap"
|
||||||
systemd:
|
systemd:
|
||||||
@@ -64,6 +68,7 @@
|
|||||||
enabled: no
|
enabled: no
|
||||||
masked: yes
|
masked: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
state: started
|
||||||
when:
|
when:
|
||||||
- capture_packet_type == 0
|
- capture_packet_type == 0
|
||||||
|
|
||||||
@@ -73,5 +78,6 @@
|
|||||||
enabled: no
|
enabled: no
|
||||||
masked: yes
|
masked: yes
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
|
state: started
|
||||||
when:
|
when:
|
||||||
- capture_packet_type == 0
|
- capture_packet_type == 0
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ sz_buffer=0
|
|||||||
|
|
||||||
{% for device_config in inline_device_config_list %}
|
{% for device_config in inline_device_config_list %}
|
||||||
[device:{{device_config.data_incoming}}]
|
[device:{{device_config.data_incoming}}]
|
||||||
{% if traffic_attr_type == 0 %}
|
{% if traffic_attr_type == 1 %}
|
||||||
in_addr={{device_config.keepalive_ip}}
|
in_addr={{device_config.keepalive_ip}}
|
||||||
in_mask={{device_config.keepalive_mask}}
|
in_mask={{device_config.keepalive_mask}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -18,12 +18,6 @@ max_rx_pkt_len=15360
|
|||||||
clear_tx_flags=1
|
clear_tx_flags=1
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
#[device:]
|
|
||||||
#jumbo_frame=1
|
|
||||||
#max_rx_pkt_len=15360
|
|
||||||
#clear_tx_flags=1
|
|
||||||
#promisc=1
|
|
||||||
|
|
||||||
[service]
|
[service]
|
||||||
# lcore id for i/o service, use comma to split
|
# lcore id for i/o service, use comma to split
|
||||||
iocore={{ mrzcpd.iocore }}
|
iocore={{ mrzcpd.iocore }}
|
||||||
@@ -47,5 +41,3 @@ sz_indirect_pktmbuf=8192
|
|||||||
sz_cache=256
|
sz_cache=256
|
||||||
sz_data=4096
|
sz_data=4096
|
||||||
|
|
||||||
[forward]
|
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ dictator_enable=0
|
|||||||
name={{packet_io.internal_interface | join(",")}}
|
name={{packet_io.internal_interface | join(",")}}
|
||||||
{% else %}
|
{% else %}
|
||||||
type=marsio
|
type=marsio
|
||||||
name={{nic_data_incoming.name}}
|
name={{packet_io.internal_interface | join(",")}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
[packet_io.external.interface]
|
[packet_io.external.interface]
|
||||||
|
|||||||
@@ -1,14 +1,20 @@
|
|||||||
- hosts: platform
|
- hosts: platform
|
||||||
remote_user: root
|
remote_user: root
|
||||||
tasks:
|
tasks:
|
||||||
- name: "uninstall firewall: absent firewall rpm packages"
|
- name: "uninstall firewall: stop sapp.service"
|
||||||
yum:
|
systemd:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: absent
|
state: stopped
|
||||||
|
with_items:
|
||||||
|
- sapp.service
|
||||||
|
|
||||||
|
- name: "uninstall firewall: absent firewall rpm packages"
|
||||||
|
shell: rpm -e --nodeps {{item}}
|
||||||
with_items:
|
with_items:
|
||||||
- dns
|
- dns
|
||||||
- ftp
|
- ftp
|
||||||
- http
|
- http
|
||||||
- mail
|
- mail
|
||||||
- quic
|
- quic
|
||||||
- ssl
|
- ssl
|
||||||
|
ignore_errors: yes
|
||||||
@@ -1,11 +1,8 @@
|
|||||||
- hosts: paltform
|
- hosts: platform
|
||||||
remote_user: root
|
remote_user: root
|
||||||
tasks:
|
tasks:
|
||||||
- name: "uninstall framework: absent framework rpm packages"
|
- name: "uninstall framework: absent framework rpm packages"
|
||||||
yum:
|
shell: rpm -e --nodeps {{item}}
|
||||||
name: "{{ item }}"
|
|
||||||
state: absent
|
|
||||||
#skip_broken: yes
|
|
||||||
with_items:
|
with_items:
|
||||||
- libcjson
|
- libcjson
|
||||||
- libdocumentanalyze
|
- libdocumentanalyze
|
||||||
@@ -21,4 +18,5 @@
|
|||||||
- libwiredcfg
|
- libwiredcfg
|
||||||
- libWiredLB
|
- libWiredLB
|
||||||
- lz4
|
- lz4
|
||||||
- libbreakpad_mini
|
- libbreakpad_mini
|
||||||
|
ignore_errors: yes
|
||||||
@@ -9,6 +9,5 @@
|
|||||||
- mrzcpd.service
|
- mrzcpd.service
|
||||||
|
|
||||||
- name: "uninstall mrzcpd:absent mrzcpd rpm package"
|
- name: "uninstall mrzcpd:absent mrzcpd rpm package"
|
||||||
yum:
|
shell: rpm -e --nodeps mrzcpd
|
||||||
name: mrzcpd
|
ignore_errors: yes
|
||||||
state: absent
|
|
||||||
@@ -9,6 +9,5 @@
|
|||||||
- sapp.service
|
- sapp.service
|
||||||
|
|
||||||
- name: "uninstall sapp:absent sapp rpm package"
|
- name: "uninstall sapp:absent sapp rpm package"
|
||||||
yum:
|
shell: rpm -e --nodeps sapp
|
||||||
name: sapp
|
ignore_errors: yes
|
||||||
state: absent
|
|
||||||
Reference in New Issue
Block a user