修改kni配置
This commit is contained in:
@@ -3,27 +3,35 @@ log_path = ./log/kni/kni.log
|
|||||||
log_level = {{ kni.global.log_level }}
|
log_level = {{ kni.global.log_level }}
|
||||||
tfe_node_count = {{ kni.global.tfe_node_count }}
|
tfe_node_count = {{ kni.global.tfe_node_count }}
|
||||||
tfe_data_recv_thread_num = {{ kni.global.tfe_data_recv_thread_num }}
|
tfe_data_recv_thread_num = {{ kni.global.tfe_data_recv_thread_num }}
|
||||||
manage_eth = {{ kni.global.manage_eth }}
|
manage_eth = {{ nic_mgr.name }}
|
||||||
keepalive_replay_switch = {{ kni.global.keepalive_replay_switch }}
|
keepalive_replay_switch = {{ kni.global.keepalive_replay_switch }}
|
||||||
|
|
||||||
|
[tfe0]
|
||||||
|
enabled = 1
|
||||||
|
mac_addr = fe:65:b7:03:50:bd
|
||||||
|
dev_eth_symbol = {{ nic_to_tfe.tfe0.name }}
|
||||||
|
ip_addr = 192.168.100.2
|
||||||
|
|
||||||
{% for node in kni.tfe_nodes %}
|
[tfe1]
|
||||||
[tfe{{ node.id }}]
|
enabled = 1
|
||||||
enabled = {{ node.enabled }}
|
mac_addr = fe:65:b7:03:50:bd
|
||||||
dev_eth_symbol = {{ node.dev_eth_symbol }}
|
dev_eth_symbol = {{ nic_to_tfe.tfe1.name }}
|
||||||
mac_addr = {{ node.mac_addr }}
|
ip_addr = 192.168.100.3
|
||||||
ip_addr = {{ node.ip_addr }}
|
|
||||||
|
|
||||||
{% endfor %}
|
[tfe2]
|
||||||
|
enabled = 1
|
||||||
|
mac_addr = fe:65:b7:03:50:bd
|
||||||
|
dev_eth_symbol = {{ nic_to_tfe.tfe2.name }}
|
||||||
|
ip_addr = 192.168.100.4
|
||||||
|
|
||||||
[tfe_cmsg_receiver]
|
[tfe_cmsg_receiver]
|
||||||
listen_eth = {{ kni.tfe_cmsg_receiver.listen_eth }}
|
listen_eth = {{ nic_inner_ctrl.name }}
|
||||||
listen_port = {{ kni.tfe_cmsg_receiver.listen_port }}
|
listen_port = 2375
|
||||||
|
|
||||||
[watch_dog]
|
[watch_dog]
|
||||||
switch = {{ kni.watch_dog.switch }}
|
switch = {{ kni.watch_dog.switch }}
|
||||||
listen_eth = {{ kni.watch_dog.listen_eth }}
|
listen_eth = {{ nic_inner_ctrl.name }}
|
||||||
listen_port = {{ kni.watch_dog.listen_port }}
|
listen_port = 2376
|
||||||
keepalive_idle = 2
|
keepalive_idle = 2
|
||||||
keepalive_intvl = 1
|
keepalive_intvl = 1
|
||||||
keepalive_cnt = 3
|
keepalive_cnt = 3
|
||||||
@@ -32,9 +40,9 @@ keepalive_cnt = 3
|
|||||||
readconf_mode = {{ kni.maat.readconf_mode }}
|
readconf_mode = {{ kni.maat.readconf_mode }}
|
||||||
tableinfo_path = ./conf/kni/maat_tableinfo.conf
|
tableinfo_path = ./conf/kni/maat_tableinfo.conf
|
||||||
maatjson_path = ./conf/kni/maat_test.json
|
maatjson_path = ./conf/kni/maat_test.json
|
||||||
redis_ip = {{ kni.maat.redis_ip }}
|
redis_ip = {{ maat_redis_server.address }}
|
||||||
redis_port = {{ kni.maat.redis_port }}
|
redis_port = {{ maat_redis_server.port }}
|
||||||
redis_index = {{ kni.maat.redis_index }}
|
redis_index = {{ maat_redis_server.db }}
|
||||||
tablename_intercept_ip = PXY_INTERCEPT_IP
|
tablename_intercept_ip = PXY_INTERCEPT_IP
|
||||||
tablename_intercept_domain = PXY_INTERCEPT_DOMAIN
|
tablename_intercept_domain = PXY_INTERCEPT_DOMAIN
|
||||||
default_action = {{ kni.maat.default_action }}
|
default_action = {{ kni.maat.default_action }}
|
||||||
@@ -42,7 +50,7 @@ default_action = {{ kni.maat.default_action }}
|
|||||||
[send_logger]
|
[send_logger]
|
||||||
switch = {{ kni.send_logger.switch }}
|
switch = {{ kni.send_logger.switch }}
|
||||||
kafka_topic = SESSION-RECORD-LOG
|
kafka_topic = SESSION-RECORD-LOG
|
||||||
kafka_brokerlist = {{ kni.send_logger.kafka_brokerlist }}
|
kafka_brokerlist = {{ log_kafkabrokers.address }}
|
||||||
|
|
||||||
[marsio]
|
[marsio]
|
||||||
appsym = knifw
|
appsym = knifw
|
||||||
|
|||||||
50
site.yml
50
site.yml
@@ -1,3 +1,27 @@
|
|||||||
|
- hosts: blade-00
|
||||||
|
roles:
|
||||||
|
- kni
|
||||||
|
vars_files:
|
||||||
|
- "vars/common.yml"
|
||||||
|
- "vars/kni.yml"
|
||||||
|
vars:
|
||||||
|
- nic_mgr:
|
||||||
|
name: eth0
|
||||||
|
- nic_data_incoming:
|
||||||
|
name: eth6
|
||||||
|
ip: 192.168.17.1
|
||||||
|
mask: 255.255.255.0
|
||||||
|
gw: 192.168.17.254
|
||||||
|
- nic_inner_ctrl:
|
||||||
|
name: eth2.100
|
||||||
|
- nic_to_tfe:
|
||||||
|
tfe0:
|
||||||
|
name: eth7
|
||||||
|
tfe1:
|
||||||
|
name: eth8
|
||||||
|
tfe2:
|
||||||
|
name: eth9
|
||||||
|
|
||||||
- hosts: blade-03
|
- hosts: blade-03
|
||||||
roles:
|
roles:
|
||||||
- framework
|
- framework
|
||||||
@@ -15,31 +39,7 @@
|
|||||||
- nic_traffic_mirror:
|
- nic_traffic_mirror:
|
||||||
name: eth4
|
name: eth4
|
||||||
use_mrzcpd: 1
|
use_mrzcpd: 1
|
||||||
|
|
||||||
- hosts: blade-00
|
|
||||||
roles:
|
|
||||||
- kni
|
|
||||||
vars_files:
|
|
||||||
- "vars/kni.yml"
|
|
||||||
vars:
|
|
||||||
- nic_mgr:
|
|
||||||
name: eth0
|
|
||||||
- nic_data_incoming:
|
|
||||||
name: eth6
|
|
||||||
ip: 192.168.17.1
|
|
||||||
mask: 255.255.255.0
|
|
||||||
gw: 192.168.17.254
|
|
||||||
- nic_inner_ctrl:
|
|
||||||
name: eth2.100
|
|
||||||
- nic_to_tfe:
|
|
||||||
- id: 0
|
|
||||||
name: eth7
|
|
||||||
- id: 1
|
|
||||||
name: eth8
|
|
||||||
- id: 2
|
|
||||||
name: eth9
|
|
||||||
|
|
||||||
|
|
||||||
# - hosts: blade-00
|
# - hosts: blade-00
|
||||||
# - roles:
|
# - roles:
|
||||||
# - framework
|
# - framework
|
||||||
|
|||||||
27
vars/kni.yml
27
vars/kni.yml
@@ -3,37 +3,18 @@
|
|||||||
log_level: 30
|
log_level: 30
|
||||||
tfe_node_count: 3
|
tfe_node_count: 3
|
||||||
tfe_data_recv_thread_num: 3
|
tfe_data_recv_thread_num: 3
|
||||||
manage_eth: eth0
|
|
||||||
keepalive_replay_switch: 1
|
keepalive_replay_switch: 1
|
||||||
tfe_cmsg_receiver:
|
|
||||||
listen_eth: eth0
|
|
||||||
listen_port: 2375
|
|
||||||
watch_dog:
|
watch_dog:
|
||||||
switch: 1
|
switch: 1
|
||||||
listen_eth: eth0
|
|
||||||
listen_port: 2376
|
|
||||||
maat:
|
maat:
|
||||||
readconf_mode: 2
|
readconf_mode: 2
|
||||||
default_action: 128
|
default_action: 128
|
||||||
redis_ip: 192.168.10.41
|
|
||||||
redis_port: 6379
|
|
||||||
redis_index: 4
|
|
||||||
send_logger:
|
send_logger:
|
||||||
switch: 1
|
switch: 1
|
||||||
kafka_brokerlist: 192.168.10.119:9092,192.168.10.122:9092,192.168.10.123:9092
|
|
||||||
tfe_nodes:
|
tfe_nodes:
|
||||||
- id: 0
|
- tfe0:
|
||||||
enabled: 1
|
enabled: 1
|
||||||
dev_eth_symbol: eth7
|
- tfe1:
|
||||||
mac_addr: fe:65:b7:03:50:bd
|
|
||||||
ip_addr: 192.168.10.38
|
|
||||||
- id: 1
|
|
||||||
enabled: 1
|
enabled: 1
|
||||||
dev_eth_symbol: eth8
|
- tfe2:
|
||||||
mac_addr: fe:65:b7:03:50:bd
|
enabled: 1
|
||||||
ip_addr: 192.168.10.39
|
|
||||||
- id: 2
|
|
||||||
enabled: 1
|
|
||||||
dev_eth_symbol: eth9
|
|
||||||
mac_addr: fe:65:b7:03:50:bd
|
|
||||||
ip_addr: 192.168.10.40
|
|
||||||
Reference in New Issue
Block a user