增加wannat模块.
This commit is contained in:
@@ -65,3 +65,10 @@ tsg_diagnose_rpm_version:
|
|||||||
|
|
||||||
http_healthcheck_rpm_version:
|
http_healthcheck_rpm_version:
|
||||||
http_healthcheck: http_healthcheck-21.06.01.d0685bb
|
http_healthcheck: http_healthcheck-21.06.01.d0685bb
|
||||||
|
|
||||||
|
wannat_wangw_rpm_version:
|
||||||
|
libwangw: libwangw-1.3.0.bcc9c59
|
||||||
|
|
||||||
|
wire_graft_rpm_version:
|
||||||
|
libwire_graft: libwire_graft-1.2.8.d123db9
|
||||||
|
libwire_graft-devel: libwire_graft-devel-1.2.8.d123db9
|
||||||
|
|||||||
@@ -63,4 +63,18 @@ tsg_diagnose:
|
|||||||
virtual_server_nic: eth_dign_s
|
virtual_server_nic: eth_dign_s
|
||||||
virtual_client_nic: eth_dign_c
|
virtual_client_nic: eth_dign_c
|
||||||
|
|
||||||
cm_policy_server_ip: '{% raw %}{{ cm_policy_server_ip }}{% endraw %}'
|
cm_policy_server_ip: '{% raw %}{{ cm_policy_server_ip }}{% endraw %}'
|
||||||
|
|
||||||
|
wannat_wangw:
|
||||||
|
wangw_conf:
|
||||||
|
main:
|
||||||
|
NAT_GW_tunnel_recv_port: 3544
|
||||||
|
NAT_GW_tunnel_send_port: 3544
|
||||||
|
NAT_GW_tunnel_device: eth_ctl
|
||||||
|
|
||||||
|
wire_graft:
|
||||||
|
wire_graft_conf:
|
||||||
|
main:
|
||||||
|
identification_by_which_device: eth_ctl
|
||||||
|
toroad:
|
||||||
|
sendto_toroad_enable: 1
|
||||||
@@ -38,6 +38,7 @@ function vf_setup()
|
|||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
ifconfig eth_ctl up
|
ifconfig eth_ctl up
|
||||||
|
ifconfig eth_ctl mtu 2000
|
||||||
ip link set eth_pf vf 2 vlan 200
|
ip link set eth_pf vf 2 vlan 200
|
||||||
ifconfig eth_ctl 192.168.200.1 netmask 255.255.255.0
|
ifconfig eth_ctl 192.168.200.1 netmask 255.255.255.0
|
||||||
|
|
||||||
|
|||||||
@@ -65,4 +65,12 @@ network_setting:
|
|||||||
nic_policy_log:
|
nic_policy_log:
|
||||||
ipv4: 127.0.0.1/24
|
ipv4: 127.0.0.1/24
|
||||||
ipv6: 'fe80\:\:5/64'
|
ipv6: 'fe80\:\:5/64'
|
||||||
gateway_ipv4: 191.168.1.1
|
gateway_ipv4: 191.168.1.1
|
||||||
|
|
||||||
|
wannat_natgw:
|
||||||
|
natgw_ip: "127.0.0.1"
|
||||||
|
|
||||||
|
wannat_toroad:
|
||||||
|
server_ip: "127.0.0.1"
|
||||||
|
server_port: 8888
|
||||||
|
|
||||||
@@ -144,7 +144,19 @@
|
|||||||
src: "../templates/telegraf_statistic.conf.j2"
|
src: "../templates/telegraf_statistic.conf.j2"
|
||||||
dest: /etc/telegraf/telegraf_statistic.conf
|
dest: /etc/telegraf/telegraf_statistic.conf
|
||||||
tags: telegraf_statistic
|
tags: telegraf_statistic
|
||||||
|
|
||||||
|
- name: "tsg-os-provision: template wannat wangw.conf file"
|
||||||
|
template:
|
||||||
|
src: "../templates/wangw.conf.j2"
|
||||||
|
dest: /home/mesasoft/sapp_run/etc/wannat/wangw.conf
|
||||||
|
tags: wangw
|
||||||
|
|
||||||
|
- name: "tsg-os-provision: template wire_graft.conf file"
|
||||||
|
template:
|
||||||
|
src: "../templates/wire_graft.conf.j2"
|
||||||
|
dest: /home/mesasoft/sapp_run/etc/wire_graft/wire_graft.conf
|
||||||
|
tags: wire_graft
|
||||||
|
|
||||||
- name: "mkdir /opt/tsg/etc/"
|
- name: "mkdir /opt/tsg/etc/"
|
||||||
file:
|
file:
|
||||||
path: /opt/tsg/etc
|
path: /opt/tsg/etc
|
||||||
|
|||||||
@@ -24,6 +24,8 @@
|
|||||||
- {role: exporter, tags: exporter}
|
- {role: exporter, tags: exporter}
|
||||||
- {role: tsg-diagnose, tags: tsg-diagnose}
|
- {role: tsg-diagnose, tags: tsg-diagnose}
|
||||||
- {role: system-init, tags: system-init}
|
- {role: system-init, tags: system-init}
|
||||||
|
- {role: wannat_wangw, tags: wannat_wangw}
|
||||||
|
- {role: wire_graft, tags: wire_graft}
|
||||||
|
|
||||||
- hosts: 7400-MCN123-P01R01
|
- hosts: 7400-MCN123-P01R01
|
||||||
remote_user: root
|
remote_user: root
|
||||||
|
|||||||
Reference in New Issue
Block a user