增加信息港第2台测试设备IP;
增加astana部署环境IP; 修改tsg-monitor服务开启自启动方式;
This commit is contained in:
19
README.md
Normal file
19
README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
TSG CLI 模块安装部署说明:
|
||||
|
||||
1.安装文件
|
||||
git_project_url: https://git.mesalab.cn/tsg/cli
|
||||
或使用离线RPM安装包。
|
||||
|
||||
2.部署工具
|
||||
tsg cli模块使用ansible工具自动部署,
|
||||
与tsg cli部署相关的脚本和配置文件已上传至: https://git.mesalab.cn/tsg/cli-deploy
|
||||
只需根据实际部署环境,修改IP地址配置文件hosts即可,
|
||||
更多详细信息请参考: https://www.ansible.com
|
||||
|
||||
3.部署步骤
|
||||
3.1)解压cli-deploy.tgz安装包至任意目录
|
||||
3.2)进入cli-deploy目录, 根据要部署的实际网络环境, 选择合适的hosts文件,
|
||||
例如,在信息港部署TSG设备, 执行以下命令:
|
||||
ansible-playbook -i hosts.xxg ./tsg-cli-playbook.yml
|
||||
3.3)ansible工具会根据预设的playbook自动部署, 部署完成后, 会生成报告,
|
||||
状态正常包括ok和changed, 如果有failed计数, 请联系开发人员解决。
|
||||
BIN
astana_ADC_IPlist_V1.xlsx
Normal file
BIN
astana_ADC_IPlist_V1.xlsx
Normal file
Binary file not shown.
70
hosts.astana
70
hosts.astana
@@ -3,49 +3,49 @@ ansible_user=root
|
||||
rpm_file_name=tsg-cli-1.0.6-1.el7.x86_64.rpm
|
||||
|
||||
[sled-mxn]
|
||||
10.4.164.23 SN=CBT2201840103123
|
||||
10.4.164.24 SN=CBT2201840103124
|
||||
10.4.164.25 SN=CBT2201840103125
|
||||
10.4.164.26 SN=CBT2201840103126
|
||||
10.4.164.27 SN=CBT2201840103127
|
||||
10.4.164.28 SN=CBT2201840103128
|
||||
10.4.164.29 SN=CBT2201840103129
|
||||
10.4.164.23 SN=CBT2201840103110
|
||||
10.4.164.24 SN=CBT2201840103111
|
||||
10.4.164.25 SN=CBT2201840103112
|
||||
10.4.164.26 SN=CBT2201840103113
|
||||
10.4.164.27 SN=CBT2201840103114
|
||||
10.4.164.28 SN=CBT2201840103115
|
||||
10.4.164.29 SN=CBT2201840103116
|
||||
|
||||
[sled-mcn0]
|
||||
10.4.39.9 SN=CBT2201840103123
|
||||
10.4.39.13 SN=CBT2201840103124
|
||||
10.4.39.17 SN=CBT2201840103125
|
||||
10.4.39.21 SN=CBT2201840103126
|
||||
10.4.39.25 SN=CBT2201840103127
|
||||
10.4.39.29 SN=CBT2201840103128
|
||||
10.4.39.33 SN=CBT2201840103129
|
||||
10.4.39.9 SN=CBT2201840103110
|
||||
10.4.39.13 SN=CBT2201840103111
|
||||
10.4.39.17 SN=CBT2201840103112
|
||||
10.4.39.21 SN=CBT2201840103113
|
||||
10.4.39.25 SN=CBT2201840103114
|
||||
10.4.39.29 SN=CBT2201840103115
|
||||
10.4.39.33 SN=CBT2201840103116
|
||||
|
||||
[sled-mcn1]
|
||||
10.4.39.10 SN=CBT2201840103123
|
||||
10.4.39.14 SN=CBT2201840103124
|
||||
10.4.39.18 SN=CBT2201840103125
|
||||
10.4.39.22 SN=CBT2201840103126
|
||||
10.4.39.26 SN=CBT2201840103127
|
||||
10.4.39.30 SN=CBT2201840103128
|
||||
10.4.39.34 SN=CBT2201840103129
|
||||
10.4.39.10 SN=CBT2201840103110
|
||||
10.4.39.14 SN=CBT2201840103111
|
||||
10.4.39.18 SN=CBT2201840103112
|
||||
10.4.39.22 SN=CBT2201840103113
|
||||
10.4.39.26 SN=CBT2201840103114
|
||||
10.4.39.30 SN=CBT2201840103115
|
||||
10.4.39.34 SN=CBT2201840103116
|
||||
|
||||
[sled-mcn2]
|
||||
10.4.39.11 SN=CBT2201840103123
|
||||
10.4.39.15 SN=CBT2201840103124
|
||||
10.4.39.19 SN=CBT2201840103125
|
||||
10.4.39.23 SN=CBT2201840103126
|
||||
10.4.39.27 SN=CBT2201840103127
|
||||
10.4.39.31 SN=CBT2201840103128
|
||||
10.4.39.35 SN=CBT2201840103129
|
||||
10.4.39.11 SN=CBT2201840103110
|
||||
10.4.39.15 SN=CBT2201840103111
|
||||
10.4.39.19 SN=CBT2201840103112
|
||||
10.4.39.23 SN=CBT2201840103113
|
||||
10.4.39.27 SN=CBT2201840103114
|
||||
10.4.39.31 SN=CBT2201840103115
|
||||
10.4.39.35 SN=CBT2201840103116
|
||||
|
||||
[sled-mcn3]
|
||||
10.4.39.12 SN=CBT2201840103123
|
||||
10.4.39.16 SN=CBT2201840103124
|
||||
10.4.39.20 SN=CBT2201840103125
|
||||
10.4.39.24 SN=CBT2201840103126
|
||||
10.4.39.28 SN=CBT2201840103127
|
||||
10.4.39.32 SN=CBT2201840103128
|
||||
10.4.39.36 SN=CBT2201840103129
|
||||
10.4.39.12 SN=CBT2201840103110
|
||||
10.4.39.16 SN=CBT2201840103111
|
||||
10.4.39.20 SN=CBT2201840103112
|
||||
10.4.39.24 SN=CBT2201840103113
|
||||
10.4.39.28 SN=CBT2201840103114
|
||||
10.4.39.32 SN=CBT2201840103115
|
||||
10.4.39.36 SN=CBT2201840103116
|
||||
|
||||
[tsg-all:children]
|
||||
sled-mxn
|
||||
|
||||
28
hosts.xxg.new
Normal file
28
hosts.xxg.new
Normal file
@@ -0,0 +1,28 @@
|
||||
[all:vars]
|
||||
ansible_user=root
|
||||
rpm_file_name=tsg-cli-1.0.7-1.el7.x86_64.rpm
|
||||
|
||||
[sled-mxn]
|
||||
192.168.40.25 SN=CBT2201925000002
|
||||
|
||||
[sled-mcn0]
|
||||
192.168.40.21 SN=CBT2201925000002
|
||||
|
||||
[sled-mcn1]
|
||||
192.168.40.22 SN=CBT2201925000002
|
||||
|
||||
[sled-mcn2]
|
||||
192.168.40.23 SN=CBT2201925000002
|
||||
|
||||
[sled-mcn3]
|
||||
192.168.40.24 SN=CBT2201925000002
|
||||
|
||||
[tsg-all:children]
|
||||
sled-mxn
|
||||
sled-mcn0
|
||||
sled-mcn1
|
||||
sled-mcn2
|
||||
sled-mcn3
|
||||
|
||||
|
||||
|
||||
@@ -35,11 +35,9 @@
|
||||
dest: "/opt/tsg/tsg-monitor/"
|
||||
mode: 0755
|
||||
|
||||
- name: "reload systemd config"
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: "enable tsg-monitor service"
|
||||
command: systemctl enable tsg-monitor.service
|
||||
|
||||
#- name: "start tsg-monitor service"
|
||||
# command: systemctl start tsg-monitor.service
|
||||
systemd:
|
||||
name: tsg-monitor
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ killall_uncompleted_cmd(){
|
||||
killall -9 -q tsg_diagnose_background
|
||||
killall -9 -q tsg_update_tags
|
||||
killall -9 -q tsg_monit_interface
|
||||
|
||||
killall -9 -q tsg_monit_intercept
|
||||
}
|
||||
|
||||
start_background_cmd(){
|
||||
@@ -19,6 +19,7 @@ start_background_cmd(){
|
||||
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
||||
/opt/tsg/tsg-monitor/tsg_update_tags > /dev/null &
|
||||
/opt/tsg/tsg-monitor/tsg_monit_interface > /dev/null &
|
||||
/opt/tsg/tsg-monitor/tsg_monit_intercept > /dev/null &
|
||||
}
|
||||
|
||||
#return value: current time in ms
|
||||
|
||||
@@ -35,11 +35,8 @@
|
||||
dest: "/opt/tsg/tsg-monitor/"
|
||||
mode: 0755
|
||||
|
||||
- name: "reload systemd config"
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: "enable tsg-monitor service"
|
||||
command: systemctl enable tsg-monitor.service
|
||||
|
||||
#- name: "start tsg-monitor service"
|
||||
# command: systemctl start tsg-monitor.service
|
||||
systemd:
|
||||
name: tsg-monitor
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
@@ -10,7 +10,7 @@ killall_uncompleted_cmd(){
|
||||
killall -9 -q tsg_diagnose_background
|
||||
killall -9 -q tsg_update_tags
|
||||
killall -9 -q tsg_monit_interface
|
||||
|
||||
killall -9 -q tsg_monit_intercept
|
||||
}
|
||||
|
||||
start_background_cmd(){
|
||||
@@ -19,6 +19,7 @@ start_background_cmd(){
|
||||
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
||||
/opt/tsg/tsg-monitor/tsg_update_tags > /dev/null &
|
||||
/opt/tsg/tsg-monitor/tsg_monit_interface > /dev/null &
|
||||
/opt/tsg/tsg-monitor/tsg_monit_intercept > /dev/null &
|
||||
}
|
||||
|
||||
#return value: current time in ms
|
||||
|
||||
@@ -35,11 +35,8 @@
|
||||
dest: "/opt/tsg/tsg-monitor/"
|
||||
mode: 0755
|
||||
|
||||
- name: "reload systemd config"
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: "enable tsg-monitor service"
|
||||
command: systemctl enable tsg-monitor.service
|
||||
|
||||
#- name: "start tsg-monitor service"
|
||||
# command: systemctl start tsg-monitor.service
|
||||
systemd:
|
||||
name: tsg-monitor
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
@@ -10,7 +10,7 @@ killall_uncompleted_cmd(){
|
||||
killall -9 -q tsg_diagnose_background
|
||||
killall -9 -q tsg_update_tags
|
||||
killall -9 -q tsg_monit_interface
|
||||
|
||||
killall -9 -q tsg_monit_intercept
|
||||
}
|
||||
|
||||
start_background_cmd(){
|
||||
@@ -19,6 +19,7 @@ start_background_cmd(){
|
||||
/opt/tsg/tsg-monitor/tsg_diagnose_background > /dev/null &
|
||||
/opt/tsg/tsg-monitor/tsg_update_tags > /dev/null &
|
||||
/opt/tsg/tsg-monitor/tsg_monit_interface > /dev/null &
|
||||
/opt/tsg/tsg-monitor/tsg_monit_intercept > /dev/null &
|
||||
}
|
||||
|
||||
#return value: current time in ms
|
||||
|
||||
@@ -35,11 +35,8 @@
|
||||
dest: "/opt/tsg/tsg-monitor/"
|
||||
mode: 0755
|
||||
|
||||
- name: "reload systemd config"
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: "enable tsg-monitor service"
|
||||
command: systemctl enable tsg-monitor.service
|
||||
|
||||
#- name: "start tsg-monitor service"
|
||||
# command: systemctl start tsg-monitor.service
|
||||
systemd:
|
||||
name: tsg-monitor
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
@@ -30,11 +30,8 @@
|
||||
dest: "/opt/tsg/tsg-monitor/"
|
||||
mode: 0755
|
||||
|
||||
- name: "reload systemd config"
|
||||
command: systemctl daemon-reload
|
||||
|
||||
- name: "enable tsg-monitor service"
|
||||
command: systemctl enable tsg-monitor.service
|
||||
|
||||
- name: "start tsg-monitor service"
|
||||
command: systemctl start tsg-monitor.service
|
||||
systemd:
|
||||
name: tsg-monitor
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
Reference in New Issue
Block a user