1、commit the file privilege that is changed
2、add function that is to reboot and stop device manager in mxn
This commit is contained in:
51
Petropavl_install_config/hosts-except.14.30
Normal file
51
Petropavl_install_config/hosts-except.14.30
Normal file
@@ -0,0 +1,51 @@
|
||||
###################
|
||||
# For example #
|
||||
###################
|
||||
#变量device_id根据设备序号设置即可
|
||||
#变量vvipv4_1、vvipv4_2、vvipv6_1、vvipv6_2为Allot相关配置,其他环境可不填或直接删除变量
|
||||
#
|
||||
#20.09版本新增APP部署
|
||||
#[app_global]
|
||||
#0.0.0.0
|
||||
|
||||
#[server-as-tun-mode]
|
||||
#1.1.1.1 device_id=device_1
|
||||
#
|
||||
#[adc_mxn]
|
||||
#10.3.72.1
|
||||
#10.3.72.2
|
||||
#
|
||||
#[adc_mcn0]
|
||||
#10.3.73.1 device_id=device_1 vvipv4_1=10.3.61.1 vvipv4_2=10.3.62.1 vvipv6_1=fc00::61:1 vvipv6_2=fc00::62:1
|
||||
#10.3.73.2 device_id=device_2 vvipv4_1=10.3.61.2 vvipv4_2=10.3.62.2 vvipv6_1=fc00::61:2 vvipv6_2=fc00::62:2
|
||||
#
|
||||
#[adc_mcn1]
|
||||
#10.3.74.1 device_id=device_1
|
||||
#10.3.74.2 device_id=device_2
|
||||
#
|
||||
#[adc_mcn2]
|
||||
#10.3.75.1 device_id=device_1
|
||||
#10.3.75.2 device_id=device_2
|
||||
#
|
||||
#[adc_mcn3]
|
||||
#10.3.76.1 device_id=device_1
|
||||
#10.3.76.2 device_id=device_2
|
||||
|
||||
#[app_global]
|
||||
#[server-as-tun-mode]
|
||||
#broken warning:
|
||||
# 10.11.54.30 !!!
|
||||
# 10.11.51.14 !!!
|
||||
[adc_mxn]
|
||||
10.11.55.[1:30]
|
||||
[adc_mcn0]
|
||||
10.11.51.[1:13]
|
||||
10.11.51.[15:30]
|
||||
[adc_mcn1]
|
||||
10.11.52.[1:30]
|
||||
[adc_mcn2]
|
||||
10.11.53.[1:30]
|
||||
[adc_mcn3]
|
||||
10.11.54.[1:30]
|
||||
[packet_dump_server]
|
||||
10.11.61.3
|
||||
50
Petropavl_install_config/hosts.test
Normal file
50
Petropavl_install_config/hosts.test
Normal file
@@ -0,0 +1,50 @@
|
||||
###################
|
||||
# For example #
|
||||
###################
|
||||
#变量device_id根据设备序号设置即可
|
||||
#变量vvipv4_1、vvipv4_2、vvipv6_1、vvipv6_2为Allot相关配置,其他环境可不填或直接删除变量
|
||||
#
|
||||
#20.09版本新增APP部署
|
||||
#[app_global]
|
||||
#0.0.0.0
|
||||
|
||||
#[server-as-tun-mode]
|
||||
#1.1.1.1 device_id=device_1
|
||||
#
|
||||
#[adc_mxn]
|
||||
#10.3.72.1
|
||||
#10.3.72.2
|
||||
#
|
||||
#[adc_mcn0]
|
||||
#10.3.73.1 device_id=device_1 vvipv4_1=10.3.61.1 vvipv4_2=10.3.62.1 vvipv6_1=fc00::61:1 vvipv6_2=fc00::62:1
|
||||
#10.3.73.2 device_id=device_2 vvipv4_1=10.3.61.2 vvipv4_2=10.3.62.2 vvipv6_1=fc00::61:2 vvipv6_2=fc00::62:2
|
||||
#
|
||||
#[adc_mcn1]
|
||||
#10.3.74.1 device_id=device_1
|
||||
#10.3.74.2 device_id=device_2
|
||||
#
|
||||
#[adc_mcn2]
|
||||
#10.3.75.1 device_id=device_1
|
||||
#10.3.75.2 device_id=device_2
|
||||
#
|
||||
#[adc_mcn3]
|
||||
#10.3.76.1 device_id=device_1
|
||||
#10.3.76.2 device_id=device_2
|
||||
|
||||
#[app_global]
|
||||
#[server-as-tun-mode]
|
||||
#broken warning:
|
||||
# 10.11.54.30 !!!
|
||||
# 10.11.51.14 !!!
|
||||
[adc_mxn]
|
||||
10.11.55.[1:30]
|
||||
[adc_mcn0]
|
||||
10.11.51.[1:30]
|
||||
[adc_mcn1]
|
||||
10.11.52.[1:30]
|
||||
[adc_mcn2]
|
||||
10.11.53.[1:30]
|
||||
[adc_mcn3]
|
||||
10.11.54.[1:30]
|
||||
[packet_dump_server]
|
||||
10.11.61.3
|
||||
@@ -43,8 +43,8 @@
|
||||
[adc_mcn1]
|
||||
10.13.52.[1:59]
|
||||
[adc_mcn2]
|
||||
10.13.53.[1:58]
|
||||
10.13.53.[1:59]
|
||||
[adc_mcn3]
|
||||
10.13.54.[1:54]
|
||||
10.13.54.[1:59]
|
||||
[packet_dump_server]
|
||||
10.13.61.8
|
||||
|
||||
3
cmd3.txt
Normal file
3
cmd3.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
ansible-playbook -i UstKamenogorsk_install_config/hosts -e "config_path=UstKamenogorsk_install_config" -l adc_mcn0 -t firewall adc_deploy.yml -f 100
|
||||
ansible-playbook -i NurSultan_install_config/hosts tasks/restart_process/restart_sapp.yml -f 100
|
||||
ansible-playbook -i NurSultan_install_config/hosts tasks/verify/verify_tsg_diagnose_once.yml -f 100
|
||||
0
deploy_all_citys.sh
Executable file → Normal file
0
deploy_all_citys.sh
Executable file → Normal file
0
roles/adc_exporter/files/ipmi_exporter
Executable file → Normal file
0
roles/adc_exporter/files/ipmi_exporter
Executable file → Normal file
0
roles/adc_exporter/files/node_exporter
Executable file → Normal file
0
roles/adc_exporter/files/node_exporter
Executable file → Normal file
0
roles/adc_exporter/files/systemd_exporter
Executable file → Normal file
0
roles/adc_exporter/files/systemd_exporter
Executable file → Normal file
0
roles/adc_exporter_ping/files/ping_exporter
Executable file → Normal file
0
roles/adc_exporter_ping/files/ping_exporter
Executable file → Normal file
0
roles/kni/files/kni-20.10.20201024.a43de2a-2.el7.x86_64.rpm
Executable file → Normal file
0
roles/kni/files/kni-20.10.20201024.a43de2a-2.el7.x86_64.rpm
Executable file → Normal file
0
roles/packet_dump/files/systemd_exporter
Executable file → Normal file
0
roles/packet_dump/files/systemd_exporter
Executable file → Normal file
0
roles/redis/files/redis_exporter
Executable file → Normal file
0
roles/redis/files/redis_exporter
Executable file → Normal file
0
roles/sapp/files/tera_fake_promisc_setup.sh
Executable file → Normal file
0
roles/sapp/files/tera_fake_promisc_setup.sh
Executable file → Normal file
0
roles/switch_control/files/switch_control_client_non_block
Executable file → Normal file
0
roles/switch_control/files/switch_control_client_non_block
Executable file → Normal file
0
roles/switch_rule/files/saved_startup
Executable file → Normal file
0
roles/switch_rule/files/saved_startup
Executable file → Normal file
1
stop_disable_device_manager.cmd
Normal file
1
stop_disable_device_manager.cmd
Normal file
@@ -0,0 +1 @@
|
||||
ansible-playbook -i NurSultan_install_config/hosts tasks/stop_disable_device_manager/stop_disable_device_manager.yml
|
||||
@@ -1,4 +1,5 @@
|
||||
- hosts:
|
||||
- adc_mxn
|
||||
- adc_mcn0
|
||||
- adc_mcn1
|
||||
- adc_mcn2
|
||||
|
||||
12
tasks/reboot/reboot_adc_mxn_mcn_by_ipmitool.yml
Normal file
12
tasks/reboot/reboot_adc_mxn_mcn_by_ipmitool.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- hosts: adc_mxn
|
||||
remote_user: root
|
||||
tasks:
|
||||
- name: "reboot adc in mxn by ipmitool"
|
||||
shell: "{{ item }}"
|
||||
ignore_errors: true
|
||||
with_items:
|
||||
- ipmitool -t 0x90 chassis power reset
|
||||
- ipmitool -t 0x80 chassis power reset
|
||||
- ipmitool -t 0x98 chassis power reset
|
||||
- ipmitool -t 0x88 chassis power reset
|
||||
- reboot
|
||||
@@ -0,0 +1,12 @@
|
||||
- hosts: adc_mxn
|
||||
remote_user: root
|
||||
tasks:
|
||||
- name: "oam stop and disable: stop oam_core, oam_snmp service, tsg-monitor"
|
||||
systemd:
|
||||
name: "{{ item }}"
|
||||
state: stopped
|
||||
enabled: no
|
||||
with_items:
|
||||
- oam_core.service
|
||||
- oam_snmp.service
|
||||
- tsg-monitor.service
|
||||
@@ -10,6 +10,7 @@
|
||||
name: telegraf_collect
|
||||
state: stopped
|
||||
enabled: no
|
||||
ignore_errors: yes
|
||||
|
||||
- name: 'telegraf_collect config file and service file'
|
||||
shell: rm /etc/telegraf/telegraf_collect.conf; rm /usr/lib/systemd/system/telegraf_collect.service; systemctl daemon-reload
|
||||
|
||||
Reference in New Issue
Block a user