Compare commits
3 Commits
tsg-versio
...
tsg-versio
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af11ad31a4 | ||
|
|
0f1d3dac47 | ||
|
|
198f0ab8a0 |
@@ -5,6 +5,14 @@ tsg_access_type: 4
|
|||||||
#####0: Tun_mode; 1: normal; 2: ADC;
|
#####0: Tun_mode; 1: normal; 2: ADC;
|
||||||
tsg_running_type: 1
|
tsg_running_type: 1
|
||||||
|
|
||||||
|
#Common combination mode:
|
||||||
|
#1:Server or PC tun mode: 0 + 0
|
||||||
|
#2:Server with Inline device: 1 + 1
|
||||||
|
#3:ADC with Inline device: 1 + 2
|
||||||
|
#4:ADC with Allot: 2 + 2
|
||||||
|
#5:ADC tun mode: 3 + 1
|
||||||
|
#6:ATCA: 4 + 1
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
maat_redis_server:
|
maat_redis_server:
|
||||||
address: "192.168.40.168"
|
address: "192.168.40.168"
|
||||||
@@ -69,6 +77,7 @@ mrzcpd:
|
|||||||
mrtunnat:
|
mrtunnat:
|
||||||
lcore_id: 38
|
lcore_id: 38
|
||||||
|
|
||||||
|
#############ATCA config################
|
||||||
nic_data_incoming:
|
nic_data_incoming:
|
||||||
ethname: enp1s0
|
ethname: enp1s0
|
||||||
vf0_name: enp1s2
|
vf0_name: enp1s2
|
||||||
@@ -80,10 +89,13 @@ VlanFlipping:
|
|||||||
vlanID_2: 101
|
vlanID_2: 101
|
||||||
vlanID_3: 103
|
vlanID_3: 103
|
||||||
vlanID_4: 104
|
vlanID_4: 104
|
||||||
########################################
|
|
||||||
|
#############Server or PC tun mode######
|
||||||
server:
|
server:
|
||||||
ethname: eth0
|
ethname: eth0
|
||||||
tun_name: eth0.100
|
tun_name: eth0.100
|
||||||
internal_interface: "eth2"
|
internal_interface: "eth2"
|
||||||
external_interface: "eth3"
|
external_interface: "eth3"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,19 +5,19 @@ package_source=local
|
|||||||
[pc-as-tun-mode]
|
[pc-as-tun-mode]
|
||||||
|
|
||||||
[blade-mxn]
|
[blade-mxn]
|
||||||
192.168.40.170
|
1.1.1.1 device_id=1
|
||||||
|
|
||||||
[blade-00]
|
[blade-00]
|
||||||
192.168.40.166 vvipv4_1= vvipv4_2= vvipv6_1= vvipv6_2=
|
1.1.1.1 device_id=1 vvipv4_1= vvipv4_2= vvipv6_1= vvipv6_2=
|
||||||
|
|
||||||
[blade-01]
|
[blade-01]
|
||||||
192.168.40.167
|
1.1.1.1 device_id=1
|
||||||
|
|
||||||
[blade-02]
|
[blade-02]
|
||||||
192.168.40.168
|
1.1.1.1 device_id=1
|
||||||
|
|
||||||
[blade-03]
|
[blade-03]
|
||||||
192.168.40.169
|
1.1.1.1 device_id=1
|
||||||
|
|
||||||
[Functional_Host:children]
|
[Functional_Host:children]
|
||||||
blade-00
|
blade-00
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -10,7 +10,7 @@
|
|||||||
- name: install certstore
|
- name: install certstore
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- /tmp/ansible_deploy/certstore-v20.05.0f61dde-1.el7.centos.x86_64.rpm
|
- /tmp/ansible_deploy/certstore-2.1.2.20200828.f507b3e-1.el7.x86_64.rpm
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: template certstore configure file
|
- name: template certstore configure file
|
||||||
|
|||||||
Binary file not shown.
BIN
roles/firewall/files/fw_ssl_plug-3.0.1.7ea9976-2.el7.x86_64.rpm
Normal file
BIN
roles/firewall/files/fw_ssl_plug-3.0.1.7ea9976-2.el7.x86_64.rpm
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -20,12 +20,12 @@
|
|||||||
- /tmp/ansible_deploy/fw_http_plug-3.0.0.1ca1c65-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/fw_http_plug-3.0.0.1ca1c65-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/fw_mail_plug-3.0.0.3b4e481-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/fw_mail_plug-3.0.0.3b4e481-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/fw_quic_plug-3.0.0.b06d39c-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/fw_quic_plug-3.0.0.b06d39c-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/fw_ssl_plug-3.0.0.3a29c3f-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/fw_ssl_plug-3.0.1.7ea9976-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/http-2.0.3.9218b4b-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/http-2.0.3.9218b4b-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/mail-1.0.7.9e3be05-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/mail-1.0.7.9e3be05-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/quic-1.1.6.d6755d8-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/quic-1.1.6.d6755d8-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/ssl-1.0.3.e8482a4-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/ssl-1.0.3.e8482a4-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/tsg_conn_record-1.0.0.2155660-1.el7.centos.x86_64.rpm
|
- /tmp/ansible_deploy/tsg_conn_record-1.0.2.2afb19a-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/tsg_conn_sketch-2.0.v2.0_alpha.af621ca-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/tsg_conn_sketch-2.0.v2.0_alpha.af621ca-2.el7.x86_64.rpm
|
||||||
|
|
||||||
- name: "Template the tsgconf/main.conf"
|
- name: "Template the tsgconf/main.conf"
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -18,7 +18,7 @@
|
|||||||
- /tmp/ansible_deploy/libWiredLB-2.0.3.c7d131b-1.el7.x86_64.rpm
|
- /tmp/ansible_deploy/libWiredLB-2.0.3.c7d131b-1.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/libcjson-1.7.8.542ad7f-1.el7.x86_64.rpm
|
- /tmp/ansible_deploy/libcjson-1.7.8.542ad7f-1.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/libdocumentanalyze-2.0.4.efdfc29-1.el7.x86_64.rpm
|
- /tmp/ansible_deploy/libdocumentanalyze-2.0.4.efdfc29-1.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/libmaatframe-3.0.2.dc1fced-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/libmaatframe-3.0.3.5931b44-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/librulescan-2.2.0.900d2b3-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/librulescan-2.2.0.900d2b3-2.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/libwiredcfg-2.0.2.7ce1eea-1.el7.x86_64.rpm
|
- /tmp/ansible_deploy/libwiredcfg-2.0.2.7ce1eea-1.el7.x86_64.rpm
|
||||||
- /tmp/ansible_deploy/lz4-1.7.5-3.el7.x86_64.rpm
|
- /tmp/ansible_deploy/lz4-1.7.5-3.el7.x86_64.rpm
|
||||||
|
|||||||
70
roles/mrzcpd/templates/mrglobal.conf.server_inline.j2
Normal file
70
roles/mrzcpd/templates/mrglobal.conf.server_inline.j2
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
[device]
|
||||||
|
device={{nic_data_incoming.name}},{{nic_to_tfe.tfe0.name}},{{nic_to_tfe.tfe1.name}},{{nic_to_tfe.tfe2.name}},vxlan_user,vxlan_fwd
|
||||||
|
sz_tunnel=8192
|
||||||
|
sz_buffer=0
|
||||||
|
|
||||||
|
[device:{{nic_data_incoming.name}}]
|
||||||
|
in_addr={{nic_data_incoming.ip}}
|
||||||
|
in_mask={{nic_data_incoming.mask}}
|
||||||
|
gateway={{nic_data_incoming.gw}}
|
||||||
|
jumbo_frame=1
|
||||||
|
max_rx_pkt_len=15360
|
||||||
|
clear_tx_flags=1
|
||||||
|
#vlan-filter=1
|
||||||
|
#vlan-id-allow=1301,1302,2301,2302,1501,1502,2501,2502,1601,1602,2601,2602,1701,1702,2701,2702,1801,1802,2801,2802,1901,1902,2901,2902
|
||||||
|
#vlan-pvid=0
|
||||||
|
#vlan-pvid-mode=0
|
||||||
|
|
||||||
|
[device:{{nic_to_tfe.tfe0.name}}]
|
||||||
|
jumbo_frame=1
|
||||||
|
max_rx_pkt_len=15360
|
||||||
|
clear_tx_flags=1
|
||||||
|
promisc=1
|
||||||
|
|
||||||
|
[device:{{nic_to_tfe.tfe1.name}}]
|
||||||
|
jumbo_frame=1
|
||||||
|
max_rx_pkt_len=15360
|
||||||
|
clear_tx_flags=1
|
||||||
|
promisc=1
|
||||||
|
|
||||||
|
[device:{{nic_to_tfe.tfe2.name}}]
|
||||||
|
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 }}
|
||||||
|
distmode=2
|
||||||
|
hashmode=0
|
||||||
|
|
||||||
|
[eal]
|
||||||
|
virtaddr=0x7f40c4a00000
|
||||||
|
loglevel=7
|
||||||
|
|
||||||
|
[keepalive]
|
||||||
|
check_spinlock=0
|
||||||
|
|
||||||
|
[ctrlzone]
|
||||||
|
ctrlzone0=tunnat,64
|
||||||
|
|
||||||
|
[pool]
|
||||||
|
create_mode=3
|
||||||
|
sz_direct_pktmbuf=4194304
|
||||||
|
sz_indirect_pktmbuf=8192
|
||||||
|
sz_cache=256
|
||||||
|
sz_data=4096
|
||||||
|
|
||||||
|
[forward]
|
||||||
|
nr_forward_rule=10
|
||||||
|
forward_rule_0=pv,{{nic_data_incoming.name}},{{nic_data_incoming.name}}
|
||||||
|
forward_rule_1=vp,{{nic_data_incoming.name}},{{nic_data_incoming.name}}
|
||||||
|
forward_rule_2=vv,vxlan_fwd,vxlan_user
|
||||||
|
forward_rule_3=vv,vxlan_user,vxlan_fwd
|
||||||
|
forward_rule_4=pv,{{nic_to_tfe.tfe0.name}},{{nic_to_tfe.tfe0.name}}
|
||||||
|
forward_rule_5=vp,{{nic_to_tfe.tfe0.name}},{{nic_to_tfe.tfe0.name}}
|
||||||
|
forward_rule_6=pv,{{nic_to_tfe.tfe1.name}},{{nic_to_tfe.tfe1.name}}
|
||||||
|
forward_rule_7=vp,{{nic_to_tfe.tfe1.name}},{{nic_to_tfe.tfe1.name}}
|
||||||
|
forward_rule_8=pv,{{nic_to_tfe.tfe2.name}},{{nic_to_tfe.tfe2.name}}
|
||||||
|
forward_rule_9=vp,{{nic_to_tfe.tfe2.name}},{{nic_to_tfe.tfe2.name}}
|
||||||
Binary file not shown.
BIN
roles/sapp/files/sapp-4.1.2.69e7edf-2.el7.x86_64.rpm
Normal file
BIN
roles/sapp/files/sapp-4.1.2.69e7edf-2.el7.x86_64.rpm
Normal file
Binary file not shown.
@@ -7,7 +7,7 @@
|
|||||||
- name: "install sapp rpms from localhost"
|
- name: "install sapp rpms from localhost"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- /tmp/ansible_deploy/sapp-4.0.18.bb2effd-x86_64...rpm
|
- /tmp/ansible_deploy/sapp-4.1.2.69e7edf-2.el7.x86_64.rpm
|
||||||
state: present
|
state: present
|
||||||
skip_broken: yes
|
skip_broken: yes
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
BIN
roles/tfe/files/tfe-4.3.9.4d7957e-1.el7.x86_64.rpm
Normal file
BIN
roles/tfe/files/tfe-4.3.9.4d7957e-1.el7.x86_64.rpm
Normal file
Binary file not shown.
@@ -14,7 +14,7 @@
|
|||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- /tmp/ansible_deploy/tfe-kmod-v1.0.5.20200408-1dkms.noarch.rpm
|
- /tmp/ansible_deploy/tfe-kmod-v1.0.5.20200408-1dkms.noarch.rpm
|
||||||
- /tmp/ansible_deploy/tfe-4.3.7.39bff00-1.el7.x86_64.rpm
|
- /tmp/ansible_deploy/tfe-4.3.9.4d7957e-1.el7.x86_64.rpm
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: "template tfe-env config"
|
- name: "template tfe-env config"
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ maat_redis_port_range={{ maat_redis_server.port }}
|
|||||||
maat_redis_db_index={{ maat_redis_server.db }}
|
maat_redis_db_index={{ maat_redis_server.db }}
|
||||||
effect_interval_s=1
|
effect_interval_s=1
|
||||||
#accept_tags={"tags":[{"tag":"location","value":"Astana"}]}
|
#accept_tags={"tags":[{"tag":"location","value":"Astana"}]}
|
||||||
|
accept_path=/opt/tsg/etc/tsg_device_tag.json
|
||||||
|
|
||||||
[dynamic_maat]
|
[dynamic_maat]
|
||||||
maat_input_mode=1
|
maat_input_mode=1
|
||||||
|
|||||||
9
roles/tsg_device_tag/tasks/main.yml
Normal file
9
roles/tsg_device_tag/tasks/main.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
- name: "create /opt/tsg/etc/"
|
||||||
|
file:
|
||||||
|
path: /opt/proxy_status
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: "Template tsg_device_tag.json"
|
||||||
|
template:
|
||||||
|
src: "{{ role_path }}/templates/tsg_device_tag.json.j2"
|
||||||
|
dest: /opt/tsg/etc/tsg_device_tag.json
|
||||||
2
roles/tsg_device_tag/templates/tsg_device_tag.json.j2
Normal file
2
roles/tsg_device_tag/templates/tsg_device_tag.json.j2
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[MAAT]
|
||||||
|
ACCEPT_TAGS={"tags":[{"tag":"device_id","value":"{{ device_id }}"}]}
|
||||||
Binary file not shown.
BIN
roles/tsg_master/files/tsg_master-3.1.2.7002e1b-2.el7.x86_64.rpm
Normal file
BIN
roles/tsg_master/files/tsg_master-3.1.2.7002e1b-2.el7.x86_64.rpm
Normal file
Binary file not shown.
@@ -6,6 +6,6 @@
|
|||||||
- name: "install tsg_master from localhost"
|
- name: "install tsg_master from localhost"
|
||||||
yum:
|
yum:
|
||||||
name:
|
name:
|
||||||
- /tmp/ansible_deploy/tsg_master-3.0.3.3c9cf15-2.el7.x86_64.rpm
|
- /tmp/ansible_deploy/tsg_master-3.1.2.7002e1b-2.el7.x86_64.rpm
|
||||||
state: present
|
state: present
|
||||||
skip_broken: yes
|
skip_broken: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user