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