完善app告警信息;
增加基于ADC硬件机框ID作为设备sn功能.
This commit is contained in:
@@ -1,4 +1,31 @@
|
||||
---
|
||||
- name: "copy tsg_read_sn.sh to destination server"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/tsg_read_sn.sh"
|
||||
dest: "/tmp/tsg-cli-deploy/"
|
||||
mode: 0755
|
||||
when: use_chassis_hardware_sn | bool
|
||||
|
||||
- name: "copy cmm_api_tst to destination server"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/cmm_api_tst"
|
||||
dest: "/tmp/tsg-cli-deploy/"
|
||||
mode: 0755
|
||||
when: use_chassis_hardware_sn | bool
|
||||
|
||||
- name: "run tsg_read_sn.sh on destination server"
|
||||
shell: ./tsg_read_sn.sh
|
||||
args:
|
||||
chdir: /tmp/tsg-cli-deploy/
|
||||
when: use_chassis_hardware_sn | bool
|
||||
|
||||
- name: "scp tsg_sn.json from destination server to local"
|
||||
fetch:
|
||||
src: "/tmp/tsg-cli-deploy/tsg_sn.json"
|
||||
dest: "{{ role_path }}/../tsg-common-files/tsg_sn.json"
|
||||
flat: yes
|
||||
when: use_chassis_hardware_sn | bool
|
||||
|
||||
- name: "copy tsg-cli rmp to destination server"
|
||||
synchronize:
|
||||
src: "{{ role_path }}/../tsg-common-files/{{ rpm_file_name }}"
|
||||
@@ -15,8 +42,15 @@
|
||||
- name: Template the tsg_sn.json
|
||||
template:
|
||||
src: "{{ role_path }}/templates/tsg_sn.json.j2"
|
||||
dest: /opt/tsg/etc/tsg_sn.json
|
||||
dest: "/opt/tsg/etc/tsg_sn.json"
|
||||
tags: template
|
||||
when: not use_chassis_hardware_sn | bool
|
||||
|
||||
- name: "copy tsg_sn.json to destination server"
|
||||
synchronize:
|
||||
src: "{{ role_path }}/../tsg-common-files/tsg_sn.json"
|
||||
dest: "/opt/tsg/etc/tsg_sn.json"
|
||||
when: use_chassis_hardware_sn | bool
|
||||
|
||||
- name: "copy tsg-monitor.service to destination server"
|
||||
synchronize:
|
||||
@@ -30,13 +64,19 @@
|
||||
dest: "/opt/tsg/tsg-monitor/"
|
||||
mode: 0755
|
||||
|
||||
- name: "copy rsyslog.conf to destination server"
|
||||
synchronize:
|
||||
src: "{{ role_path }}/files/rsyslog.conf"
|
||||
dest: "/etc/"
|
||||
|
||||
- name: "restart rsyslog service"
|
||||
systemd:
|
||||
name: rsyslog
|
||||
state: restarted
|
||||
|
||||
- name: "enable tsg-monitor service"
|
||||
systemd:
|
||||
name: tsg-monitor
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
|
||||
- name: "copy rsyslog.conf to destination server"
|
||||
synchronize:
|
||||
src: "{{ role_path }}/files/rsyslog.conf"
|
||||
dest: "/etc/"
|
||||
state: restarted
|
||||
Reference in New Issue
Block a user