First commit, at K18-2 Control Center.
This commit is contained in:
21
uninstall/roles/backup_framework_config/tasks/main.yml
Normal file
21
uninstall/roles/backup_framework_config/tasks/main.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
- name: "create backup_dest_path"
|
||||
file:
|
||||
path: "{{ backup_dest_path }}"
|
||||
state: directory
|
||||
ignore_errors: true
|
||||
|
||||
- name: "optMESA_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||
shell: "ls {{ backup_dest_path }}/optMESA_{{ uninstall_version }}_{{ date }}.zip"
|
||||
register: optMESA_directory
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup /opt/MESA to destination path"
|
||||
archive:
|
||||
path: /opt/MESA
|
||||
dest: "{{ backup_dest_path }}/optMESA_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when:
|
||||
- optMESA_directory.rc != 0
|
||||
- backup.framework == 1
|
||||
ignore_errors: true
|
||||
|
||||
20
uninstall/roles/backup_marsio_config/tasks/main.yml
Normal file
20
uninstall/roles/backup_marsio_config/tasks/main.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
- name: "create backup_dest_path"
|
||||
file:
|
||||
path: "{{ backup_dest_path }}"
|
||||
state: directory
|
||||
ignore_errors: true
|
||||
|
||||
- name: "mrzcpd_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||
shell: "ls {{ backup_dest_path }}/mrzcpd_{{ uninstall_version }}_{{ date }}.zip"
|
||||
register: mrzcpd_directory
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup /opt/mrzcpd to destination path"
|
||||
archive:
|
||||
path: /opt/mrzcpd
|
||||
dest: "{{ backup_dest_path }}/mrzcpd_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when:
|
||||
- mrzcpd_directory.rc != 0
|
||||
- backup.marsio == 1
|
||||
ignore_errors: true
|
||||
82
uninstall/roles/backup_sapp_config/tasks/main.yml
Normal file
82
uninstall/roles/backup_sapp_config/tasks/main.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
- name: "create backup_dest_path"
|
||||
file:
|
||||
path: "{{ backup_dest_path }}"
|
||||
state: directory
|
||||
ignore_errors: true
|
||||
|
||||
- name: "sapp_etc_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||
shell: "ls {{ backup_dest_path }}/sapp_etc_{{ uninstall_version }}_{{ date }}.zip"
|
||||
register: sapp_etc
|
||||
ignore_errors: true
|
||||
|
||||
- name: "sapp_plug_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||
shell: "ls {{ backup_dest_path }}/sapp_plug_{{ uninstall_version }}_{{ date }}.zip"
|
||||
register: sapp_plug
|
||||
ignore_errors: true
|
||||
|
||||
- name: "sapp_tsgconf_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||
shell: "ls {{ backup_dest_path }}/sapp_tsgconf_{{ uninstall_version }}_{{ date }}.zip"
|
||||
register: sapp_tsgconf
|
||||
ignore_errors: true
|
||||
|
||||
- name: "sapp_appconf_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||
shell: "ls {{ backup_dest_path }}/sapp_appconf_{{ uninstall_version }}_{{ date }}.zip"
|
||||
register: sapp_appconf
|
||||
ignore_errors: true
|
||||
|
||||
- name: "sapp_conf_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||
shell: "ls {{ backup_dest_path }}/sapp_conf_{{ uninstall_version }}_{{ date }}.zip"
|
||||
register: sapp_conf
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup sapp_run/etc to destination path"
|
||||
archive:
|
||||
path: /home/mesasoft/sapp_run/etc
|
||||
dest: "{{ backup_dest_path }}/sapp_etc_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when:
|
||||
- sapp_etc.rc != 0
|
||||
- backup.sapp_etc == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup sapp_run/plug to destination path"
|
||||
archive:
|
||||
path: /home/mesasoft/sapp_run/plug
|
||||
dest: "{{ backup_dest_path }}/sapp_plug_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when:
|
||||
- sapp_plug.rc != 0
|
||||
- backup.sapp_plug == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup sapp_run/tsgconf/ to destination path"
|
||||
archive:
|
||||
path: /home/mesasoft/sapp_run/tsgconf
|
||||
dest: "{{ backup_dest_path }}/sapp_tsgconf_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when:
|
||||
- sapp_tsgconf.rc != 0
|
||||
- backup.sapp_tsgconf == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup sapp_run/appconf/ to destination path"
|
||||
archive:
|
||||
path: /home/mesasoft/sapp_run/appconf
|
||||
dest: "{{ backup_dest_path }}/sapp_appconf_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when:
|
||||
- sapp_appconf.rc != 0
|
||||
- backup.sapp_appconf == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup sapp_run/conf/ to destination path"
|
||||
archive:
|
||||
path: /home/mesasoft/sapp_run/conf
|
||||
dest: "{{ backup_dest_path }}/sapp_conf_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when:
|
||||
- sapp_conf.rc != 0
|
||||
- backup.sapp_conf == 1
|
||||
ignore_errors: true
|
||||
|
||||
|
||||
20
uninstall/roles/backup_tfe_config/tasks/main.yml
Normal file
20
uninstall/roles/backup_tfe_config/tasks/main.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
- name: "create backup_dest_path"
|
||||
file:
|
||||
path: "{{ backup_dest_path }}"
|
||||
state: directory
|
||||
ignore_errors: true
|
||||
|
||||
- name: "tfe_conf_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||
shell: "ls {{ backup_dest_path }}/tfe_conf_{{ uninstall_version }}_{{ date }}.zip"
|
||||
register: tfeconf_directory
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup /opt/tsg/tfe/conf to destination path"
|
||||
archive:
|
||||
path: /opt/tsg/tfe/conf
|
||||
dest: "{{ backup_dest_path }}/tfe_conf_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when:
|
||||
- tfeconf_directory.rc != 0
|
||||
- backup.tfe == 1
|
||||
ignore_errors: true
|
||||
20
uninstall/roles/backup_tsgenv_config/tasks/main.yml
Normal file
20
uninstall/roles/backup_tsgenv_config/tasks/main.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
- name: "create backup_dest_path"
|
||||
file:
|
||||
path: "{{ backup_dest_path }}"
|
||||
state: directory
|
||||
ignore_errors: true
|
||||
|
||||
- name: "tsg_env_{{ uninstall_version }}_{{ date }}.zip exist?"
|
||||
shell: "ls {{ backup_dest_path }}/tsg_env_{{ uninstall_version }}_{{ date }}.zip"
|
||||
register: tsgenv_directory
|
||||
ignore_errors: true
|
||||
|
||||
- name: "backup /opt/tsg/env to destination path"
|
||||
archive:
|
||||
path: /opt/tsg/env
|
||||
dest: "{{ backup_dest_path }}/tsg_env_{{ uninstall_version }}_{{ date }}.zip"
|
||||
format: zip
|
||||
when:
|
||||
- tsgenv_directory.rc != 0
|
||||
- backup.tsg_env == 1
|
||||
ignore_errors: true
|
||||
7
uninstall/roles/cert_redis/tasks/main.yml
Normal file
7
uninstall/roles/cert_redis/tasks/main.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
- name: "[uninstall cert_redis] stop cert-redis"
|
||||
systemd:
|
||||
name: cert-redis
|
||||
state: stopped
|
||||
enabled: no
|
||||
when: uninstall.certredis == 1
|
||||
ignore_errors: true
|
||||
16
uninstall/roles/certstore/tasks/main.yml
Normal file
16
uninstall/roles/certstore/tasks/main.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
- name: "[uninstall certstore] stop certstore"
|
||||
systemd:
|
||||
name: certstore
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.certstore == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall certstore] uninstall certstore"
|
||||
yum:
|
||||
name:
|
||||
- "{{ certstore }}"
|
||||
state: absent
|
||||
when: uninstall.certstore == 1
|
||||
|
||||
16
uninstall/roles/clotho/tasks/main.yml
Normal file
16
uninstall/roles/clotho/tasks/main.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
####################
|
||||
#Uninstall clotho
|
||||
- name: "[uninstall clotho] stop clotho"
|
||||
systemd:
|
||||
name: clotho
|
||||
state: stopped
|
||||
enabled: no
|
||||
when: uninstall.clotho == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall clotho] uninstall clotho"
|
||||
yum:
|
||||
name:
|
||||
- "{{ clotho }}"
|
||||
state: absent
|
||||
when: uninstall.clotho == 1
|
||||
72
uninstall/roles/firewall/tasks/main.yml
Normal file
72
uninstall/roles/firewall/tasks/main.yml
Normal file
@@ -0,0 +1,72 @@
|
||||
####################
|
||||
#Uninstall firewall
|
||||
- name: "[uninstall firewall] stop sapp"
|
||||
systemd:
|
||||
name: sapp
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.firewall == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall firewall] create /home/mesasoft/sapp_runetc/"
|
||||
file:
|
||||
path: /home/mesasoft/sapp_runetc/
|
||||
state: directory
|
||||
when: uninstall.firewall == 1
|
||||
|
||||
- name: "[uninstall firewall] create entrylist.conf"
|
||||
file:
|
||||
path: /home/mesasoft/sapp_runetc/entrylist.conf
|
||||
state: touch
|
||||
when: uninstall.firewall == 1
|
||||
|
||||
- name: "[uninstall firewall] uninstall firewall"
|
||||
yum:
|
||||
name:
|
||||
- "{{ capture_packet_plug }}"
|
||||
- "{{ dns }}"
|
||||
- "{{ ftp }}"
|
||||
- "{{ http }}"
|
||||
- "{{ quic }}"
|
||||
- "{{ ssl }}"
|
||||
- "{{ mail }}"
|
||||
- "{{ fw_dns }}"
|
||||
- "{{ fw_ftp }}"
|
||||
- "{{ fw_http }}"
|
||||
- "{{ fw_ssl }}"
|
||||
- "{{ fw_mail }}"
|
||||
state: absent
|
||||
when: uninstall.firewall == 1
|
||||
|
||||
- name: "[uninstall firewall] uninstall fw_quic"
|
||||
yum:
|
||||
name:
|
||||
- "{{ fw_quic }}"
|
||||
state: absent
|
||||
when: uninstall.firewall == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall firewall] uninstall tsg_conn_record"
|
||||
yum:
|
||||
name:
|
||||
- "{{ tsg_conn_record }}"
|
||||
state: absent
|
||||
when: uninstall.firewall == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall firewall] uninstall tsg_conn_sketch"
|
||||
yum:
|
||||
name:
|
||||
- "{{ tsg_conn_sketch }}"
|
||||
state: absent
|
||||
when: uninstall.firewall == 1
|
||||
ignore_errors: true
|
||||
|
||||
|
||||
- name: "[uninstall firewall] remove /home/mesasoft/sapp_runetc"
|
||||
file:
|
||||
path: /home/mesasoft/sapp_runetc
|
||||
state: absent
|
||||
when: uninstall.firewall == 1
|
||||
|
||||
40
uninstall/roles/framework/tasks/main.yml
Normal file
40
uninstall/roles/framework/tasks/main.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
- name: "[uninstall framework] create project_list.conf"
|
||||
file:
|
||||
path: /home/mesasoft/sapp_run/etc/project_list.conf
|
||||
state: touch
|
||||
when: uninstall.framework == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall framework] create conflist.inf"
|
||||
file:
|
||||
path: /home/mesasoft/sapp_run/plug/conflist.inf
|
||||
state: touch
|
||||
when: uninstall.framework == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall framework] uninstall framework"
|
||||
yum:
|
||||
name:
|
||||
- "{{ libcjson }}"
|
||||
- "{{ libdocument }}"
|
||||
- "{{ libmaatframe }}"
|
||||
- "{{ libMESA_field_stat }}"
|
||||
- "{{ libMESA_field_stat2 }}"
|
||||
- "{{ libMESA_handle_logger }}"
|
||||
- "{{ libMESA_htable }}"
|
||||
- "{{ libMESA_prof_load }}"
|
||||
- "{{ librdkafka }}"
|
||||
- "{{ librulescan }}"
|
||||
- "{{ libwiredcfg }}"
|
||||
- "{{ libWiredLB }}"
|
||||
- "{{ lz4 }}"
|
||||
state: absent
|
||||
when: uninstall.framework == 1
|
||||
|
||||
- name: "[uninstall framework] uninstall framework"
|
||||
yum:
|
||||
name:
|
||||
- "{{ libtsglua }}"
|
||||
state: absent
|
||||
when: uninstall.framework == 1
|
||||
ignore_errors: true
|
||||
9
uninstall/roles/http_healthcheck/tasks/main.yml
Normal file
9
uninstall/roles/http_healthcheck/tasks/main.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
####################
|
||||
#Uninstall http_healthcheck
|
||||
- name: "[uninstall http_healthcheck] uninstall http_healthcheck"
|
||||
yum:
|
||||
name:
|
||||
- "{{ http_healthcheck }}"
|
||||
state: absent
|
||||
when: uninstall.http_healthcheck == 1
|
||||
|
||||
23
uninstall/roles/kernel/tasks/main.yml
Normal file
23
uninstall/roles/kernel/tasks/main.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
####################
|
||||
#Uninstall Kernel
|
||||
- name: "[uninstall kernel] reset default kernel"
|
||||
shell: grub2-set-default '{{ origin_kernel }}'
|
||||
when: uninstall.kernel == 1
|
||||
|
||||
- name: "[uninstall kernel] reboot"
|
||||
reboot:
|
||||
when: uninstall.kernel == 1
|
||||
|
||||
- name: "[uninstall kernel] uninstall tfe-kmod and kernel"
|
||||
yum:
|
||||
name:
|
||||
- "{{ tfe_kmod }}"
|
||||
- "{{ dkms }}"
|
||||
- "{{ kernel_ml }}"
|
||||
- "{{ kernel_ml_devel }}"
|
||||
- "{{ elfutils_libelf_devel }}"
|
||||
- "{{ zlib_devel }}"
|
||||
state: absent
|
||||
when: uninstall.kernel == 1
|
||||
ignore_errors: true
|
||||
|
||||
18
uninstall/roles/kni/tasks/main.yml
Normal file
18
uninstall/roles/kni/tasks/main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
####################
|
||||
#Uninstall kni
|
||||
- name: "[uninstall kni] stop sapp"
|
||||
systemd:
|
||||
name: sapp
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.kni == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall kni] uninstall kni"
|
||||
yum:
|
||||
name:
|
||||
- "{{ kni }}"
|
||||
state: absent
|
||||
when: uninstall.kni == 1
|
||||
|
||||
26
uninstall/roles/marsio/tasks/main.yml
Normal file
26
uninstall/roles/marsio/tasks/main.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
####################
|
||||
#Uninstall Marsio
|
||||
- name: "[uninstall marsio] stop mrzcpd"
|
||||
systemd:
|
||||
name: mrzcpd
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.marsio == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall marsio] stop mrtunnat"
|
||||
systemd:
|
||||
name: mrtunnat
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.marsio == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall marsio] uninstall mrzcpd"
|
||||
yum:
|
||||
name:
|
||||
- "{{ mrzcpd }}"
|
||||
state: absent
|
||||
when: uninstall.marsio == 1
|
||||
82
uninstall/roles/package_list/20.06.1.yml
Normal file
82
uninstall/roles/package_list/20.06.1.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
####################
|
||||
#marsio
|
||||
mrzcpd: mrzcpd-4.3.21.26314ca-1.el7.x86_64
|
||||
|
||||
####################
|
||||
#kernel
|
||||
origin_kernel: CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)
|
||||
#默认为CentOS 7.4内核,如果系统版本变更,请手动更改origin_kernel值
|
||||
|
||||
kernel_ml: kernel-ml-5.1.8-1.el7.elrepo.x86_64
|
||||
kernel_ml_devel: kernel-ml-devel-5.1.8-1.el7.elrepo.x86_64
|
||||
dkms: dkms-2.7.1-1.el7.noarch
|
||||
elfutils_libelf_devel: null
|
||||
pkgconfig: null
|
||||
zlib_devel: null
|
||||
|
||||
####################
|
||||
#framework
|
||||
libcjson: libcjson-1.7.8.542ad7f-1.x86_64
|
||||
libdocument: libdocumentanalyze-2.0.4.efdfc29-1.x86_64
|
||||
libmaatframe: libmaatframe-2.9.2.7519c63-1.x86_64
|
||||
libMESA_field_stat: libMESA_field_stat-1.0.1.852c2df-1.x86_64
|
||||
libMESA_field_stat2: libMESA_field_stat2-2.9.0.16ecf3b-1.x86_64
|
||||
libMESA_handle_logger: libMESA_handle_logger-1.0.9.304259e-1.x86_64
|
||||
libMESA_htable: libMESA_htable-3.10.11.6275308-1.x86_64
|
||||
libMESA_prof_load: libMESA_prof_load-1.0.5.bf755de-1.x86_64
|
||||
librdkafka: librdkafka-0.11.4-1.el7.x86_64
|
||||
librulescan: librulescan-2.2.0.900d2b3-1.x86_64
|
||||
libwiredcfg: libwiredcfg-2.0.2.7ce1eea-1.x86_64
|
||||
libWiredLB: libWiredLB-2.0.3.c7d131b-1.x86_64
|
||||
lz4: lz4-1.7.5-3.el7.x86_64
|
||||
|
||||
####################
|
||||
#sapp
|
||||
sapp: sapp-4.0.14.91cbc1b-1.x86_64
|
||||
|
||||
####################
|
||||
#tsg_master
|
||||
tsg_master: tsg_master-1.3.3.65833d7-1.x86_64
|
||||
|
||||
####################
|
||||
#kni
|
||||
kni: kni-20.06-1.el7.x86_64
|
||||
|
||||
####################
|
||||
#firewall
|
||||
capture_packet_plug: capture_packet_plug-debug-1.0.0.-1.el7.x86_64
|
||||
dns: dns-2.0.2.5effe72-1.x86_64
|
||||
ftp: ftp-1.0.4.5d3a283-1.x86_64
|
||||
http: http-2.0.1.e8f12ee-1.x86_64
|
||||
quic: quic-1.1.4.9c2e0ba-1.x86_64
|
||||
ssl: ssl-1.0.0.73e5273-1.x86_64
|
||||
mail: mail-1.0.3.cbc6034-1.x86_64
|
||||
fw_dns: fw_dns_plug-debug-1.0.3.ea8e0f6-1.el7.centos.x86_64
|
||||
fw_ftp: fw_ftp_plug-1.1.0.74c9a05-1.x86_6
|
||||
fw_http: fw_http_plug-1.2.0.a7e63c0-1.x86_64
|
||||
fw_quic: fw_quic_plug-1.0.1.e8cded4-1.x86_64
|
||||
fw_ssl: fw_ssl_plug-1.0.3.30fcf35-1.x86_64
|
||||
fw_mail: fw_mail_plug-1.1.0.a42c5a0-1.x86_64
|
||||
tsg_conn_record: tsg_conn_record-1.0.0.2155660-1.el7.centos.x86_64
|
||||
tsg_conn_sketch: null
|
||||
|
||||
####################
|
||||
#tfe
|
||||
tfe: tfe-4.3.5.0db794c-1.el7.x86_64
|
||||
tfe_kmod: tfe-kmod-v1.0.5.20200408-1dkms.noarch
|
||||
|
||||
####################
|
||||
#http_healthcheck
|
||||
http_healthcheck: http_healthcheck-20.04-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#clotho
|
||||
clotho: clotho-debug-1.0.0.-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#certstore
|
||||
certstore: certstore-2.1.2.0f61dde-1.el7.centos.x86_64
|
||||
|
||||
#####################
|
||||
#telegraf
|
||||
telegraf_statistic: telegraf-1.13.0-1.x86_64
|
||||
82
uninstall/roles/package_list/20.07.rc1.yml
Normal file
82
uninstall/roles/package_list/20.07.rc1.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
####################
|
||||
#marsio
|
||||
mrzcpd: mrzcpd-4.3.25.d88306e-1.el7.x86_64
|
||||
|
||||
####################
|
||||
#kernel
|
||||
origin_kernel: CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)
|
||||
#默认为CentOS 7.4内核,如果系统版本变更,请手动更改origin_kernel值
|
||||
|
||||
kernel_ml: kernel-ml-5.1.8-1.el7.elrepo.x86_64
|
||||
kernel_ml_devel: kernel-ml-devel-5.1.8-1.el7.elrepo.x86_64
|
||||
dkms: dkms-2.7.1-1.el7.noarch
|
||||
elfutils_libelf_devel: null
|
||||
pkgconfig: null
|
||||
zlib_devel: null
|
||||
|
||||
####################
|
||||
#framework
|
||||
libcjson: libcjson-1.7.8.542ad7f-1.x86_64
|
||||
libdocument: libdocumentanalyze-2.0.4.efdfc29-1.x86_64
|
||||
libmaatframe: libmaatframe-3.0.2.dc1fced-1.x86_64
|
||||
libMESA_field_stat: libMESA_field_stat-1.0.1.852c2df-1.x86_64
|
||||
libMESA_field_stat2: libMESA_field_stat2-2.9.0.16ecf3b-1.x86_64
|
||||
libMESA_handle_logger: libMESA_handle_logger-1.0.9.304259e-1.x86_64
|
||||
libMESA_htable: libMESA_htable-3.10.11.6275308-1.x86_64
|
||||
libMESA_prof_load: libMESA_prof_load-1.0.5.bf755de-1.x86_64
|
||||
librdkafka: librdkafka-0.11.4-1.el7.x86_64
|
||||
librulescan: librulescan-2.2.0.900d2b3-1.x86_64
|
||||
libwiredcfg: libwiredcfg-2.0.2.7ce1eea-1.x86_64
|
||||
libWiredLB: libWiredLB-2.0.3.c7d131b-1.x86_64
|
||||
lz4: lz4-1.7.5-3.el7.x86_64
|
||||
|
||||
####################
|
||||
#sapp
|
||||
sapp: sapp-4.0.18.bb2effd-1.x86_64
|
||||
|
||||
####################
|
||||
#tsg_master
|
||||
tsg_master: tsg_master-3.0.3.3c9cf15-1.x86_64
|
||||
|
||||
####################
|
||||
#kni
|
||||
kni: kni-20.07-1.el7.x86_64
|
||||
|
||||
####################
|
||||
#firewall
|
||||
capture_packet_plug: capture_packet_plug-3.0.2.09f193c-1.x86_64
|
||||
dns: dns-2.0.6.d8317e9-1.x86_64
|
||||
ftp: ftp-1.0.6.2710506-1.x86_64
|
||||
http: http-2.0.3.9218b4b-1.x86_64
|
||||
quic: quic-1.1.6.d6755d8-1.x86_64
|
||||
ssl: ssl-1.0.3.e8482a4-1.x86_64
|
||||
mail: mail-1.0.7.9e3be05-1.x86_64
|
||||
fw_dns: fw_dns_plug-3.0.0.0a5d574-1.x86_64
|
||||
fw_ftp: fw_ftp_plug-3.0.0.7a867ea-1.x86_64
|
||||
fw_http: fw_http_plug-3.0.0.1ca1c65-1.x86_64
|
||||
fw_quic: fw_quic_plug-3.0.0.b06d39c-1.x86_64
|
||||
fw_ssl: fw_ssl_plug-3.0.0.3a29c3f-1.x86_64
|
||||
fw_mail: fw_mail_plug-3.0.0.3b4e481-1.x86_64
|
||||
tsg_conn_record: tsg_conn_record-1.0.0.2155660-1.el7.centos.x86_64
|
||||
tsg_conn_sketch: tsg_conn_sketch-2.0.v2.0_alpha.af621ca-1.x86_64
|
||||
|
||||
####################
|
||||
#tfe
|
||||
tfe: tfe-4.3.7.39bff00-1.el7.x86_64
|
||||
tfe_kmod: tfe-kmod-v1.0.5.20200408-1dkms.noarch
|
||||
|
||||
####################
|
||||
#http_healthcheck
|
||||
http_healthcheck: http_healthcheck-20.04-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#clotho
|
||||
clotho: clotho-debug-1.0.0.-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#certstore
|
||||
certstore: certstore-2.1.2.0f61dde-1.el7.centos.x86_64
|
||||
|
||||
#####################
|
||||
#telegraf
|
||||
telegraf_statistic: telegraf-1.13.0-1.x86_64
|
||||
82
uninstall/roles/package_list/20.07.yml
Normal file
82
uninstall/roles/package_list/20.07.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
####################
|
||||
#marsio
|
||||
mrzcpd: mrzcpd-4.3.25.d88306e-1.el7.x86_64
|
||||
|
||||
####################
|
||||
#kernel
|
||||
origin_kernel: CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)
|
||||
#默认为CentOS 7.4内核,如果系统版本变更,请手动更改origin_kernel值
|
||||
|
||||
kernel_ml: kernel-ml-5.1.8-1.el7.elrepo.x86_64
|
||||
kernel_ml_devel: kernel-ml-devel-5.1.8-1.el7.elrepo.x86_64
|
||||
dkms: dkms-2.7.1-1.el7.noarch
|
||||
elfutils_libelf_devel: null
|
||||
pkgconfig: null
|
||||
zlib_devel: null
|
||||
|
||||
####################
|
||||
#framework
|
||||
libcjson: libcjson-1.7.8.542ad7f-1.x86_64
|
||||
libdocument: libdocumentanalyze-2.0.4.efdfc29-1.x86_64
|
||||
libmaatframe: libmaatframe-3.0.2.dc1fced-1.x86_64
|
||||
libMESA_field_stat: libMESA_field_stat-1.0.1.852c2df-1.x86_64
|
||||
libMESA_field_stat2: libMESA_field_stat2-2.9.0.16ecf3b-1.x86_64
|
||||
libMESA_handle_logger: libMESA_handle_logger-1.0.9.304259e-1.x86_64
|
||||
libMESA_htable: libMESA_htable-3.10.11.6275308-1.x86_64
|
||||
libMESA_prof_load: libMESA_prof_load-1.0.5.bf755de-1.x86_64
|
||||
librdkafka: librdkafka-0.11.4-1.el7.x86_64
|
||||
librulescan: librulescan-2.2.0.900d2b3-1.x86_64
|
||||
libwiredcfg: libwiredcfg-2.0.2.7ce1eea-1.x86_64
|
||||
libWiredLB: libWiredLB-2.0.3.c7d131b-1.x86_64
|
||||
lz4: lz4-1.7.5-3.el7.x86_64
|
||||
|
||||
####################
|
||||
#sapp
|
||||
sapp: sapp-4.0.18.bb2effd-1.x86_64
|
||||
|
||||
####################
|
||||
#tsg_master
|
||||
tsg_master: tsg_master-3.0.4.40fa047-1.x86_64
|
||||
|
||||
####################
|
||||
#kni
|
||||
kni: kni-20.07-1.el7.x86_64
|
||||
|
||||
####################
|
||||
#firewall
|
||||
capture_packet_plug: capture_packet_plug-3.0.2.09f193c-1.x86_64
|
||||
dns: dns-2.0.6.d8317e9-1.x86_64
|
||||
ftp: ftp-1.0.6.2710506-1.x86_64
|
||||
http: http-2.0.3.9218b4b-1.x86_64
|
||||
quic: quic-1.1.6.d6755d8-1.x86_64
|
||||
ssl: ssl-1.0.3.e8482a4-1.x86_64
|
||||
mail: mail-1.0.7.9e3be05-1.x86_64
|
||||
fw_dns: fw_dns_plug-3.0.0.0a5d574-1.x86_64
|
||||
fw_ftp: fw_ftp_plug-3.0.0.7a867ea-1.x86_64
|
||||
fw_http: fw_http_plug-3.0.0.1ca1c65-1.x86_64
|
||||
fw_quic: fw_quic_plug-3.0.0.b06d39c-1.x86_64
|
||||
fw_ssl: fw_ssl_plug-3.0.1.7ea9976-1.x86_64
|
||||
fw_mail: fw_mail_plug-3.0.0.3b4e481-1.x86_64
|
||||
tsg_conn_record: tsg_conn_record-1.0.0.2155660-1.el7.centos.x86_64
|
||||
tsg_conn_sketch: tsg_conn_sketch-2.0.v2.0_alpha.af621ca-1.x86_64
|
||||
|
||||
####################
|
||||
#tfe
|
||||
tfe: tfe-4.3.8.11b62a2-1.el7.x86_64
|
||||
tfe_kmod: tfe-kmod-v1.0.5.20200408-1dkms.noarch
|
||||
|
||||
####################
|
||||
#http_healthcheck
|
||||
http_healthcheck: http_healthcheck-20.04-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#clotho
|
||||
clotho: clotho-debug-1.0.0.-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#certstore
|
||||
certstore: certstore-2.1.2.0f61dde-1.el7.centos.x86_64
|
||||
|
||||
#####################
|
||||
#telegraf
|
||||
telegraf_statistic: telegraf-1.13.0-1.x86_64
|
||||
82
uninstall/roles/package_list/20.08.yml
Normal file
82
uninstall/roles/package_list/20.08.yml
Normal file
@@ -0,0 +1,82 @@
|
||||
####################
|
||||
#marsio
|
||||
mrzcpd: mrzcpd-4.3.25.d88306e-1.el7.x86_64
|
||||
|
||||
####################
|
||||
#kernel
|
||||
origin_kernel: CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)
|
||||
#默认为CentOS 7.4内核,如果系统版本变更,请手动更改origin_kernel值
|
||||
|
||||
kernel_ml: kernel-ml-5.1.8-1.el7.elrepo.x86_64
|
||||
kernel_ml_devel: kernel-ml-devel-5.1.8-1.el7.elrepo.x86_64
|
||||
dkms: dkms-2.7.1-1.el7.noarch
|
||||
elfutils_libelf_devel: elfutils-libelf-devel-0.168-8.el7.x86_64
|
||||
pkgconfig: pkgconfig-0.27.1-4.el7.x86_64
|
||||
zlib_devel: zlib-devel-1.2.7-17.el7.x86_64
|
||||
|
||||
####################
|
||||
#framework
|
||||
libcjson: libcjson-1.7.8.542ad7f-1.x86_64
|
||||
libdocument: libdocumentanalyze-2.0.4.efdfc29-1.x86_64
|
||||
libmaatframe: libmaatframe-3.0.3.5931b44-1.x86_64
|
||||
libMESA_field_stat: libMESA_field_stat-1.0.1.852c2df-1.x86_64
|
||||
libMESA_field_stat2: libMESA_field_stat2-2.9.0.16ecf3b-1.x86_64
|
||||
libMESA_handle_logger: libMESA_handle_logger-1.0.9.304259e-1.x86_64
|
||||
libMESA_htable: libMESA_htable-3.10.11.6275308-1.x86_64
|
||||
libMESA_prof_load: libMESA_prof_load-1.0.5.bf755de-1.x86_64
|
||||
librdkafka: librdkafka-0.11.4-1.el7.x86_64
|
||||
librulescan: librulescan-2.2.0.900d2b3-1.x86_64
|
||||
libwiredcfg: libwiredcfg-2.0.2.7ce1eea-1.x86_64
|
||||
libWiredLB: libWiredLB-2.0.3.c7d131b-1.x86_64
|
||||
lz4: lz4-1.7.5-3.el7.x86_64
|
||||
|
||||
####################
|
||||
#sapp
|
||||
sapp: sapp-4.0.20.b59c12a-1.x86_64
|
||||
|
||||
####################
|
||||
#tsg_master
|
||||
tsg_master: tsg_master-3.1.2.7002e1b-1.x86_64
|
||||
|
||||
####################
|
||||
#kni
|
||||
kni: kni-20.07-1.el7.x86_64
|
||||
|
||||
####################
|
||||
#firewall
|
||||
capture_packet_plug: capture_packet_plug-3.0.2.09f193c-1.x86_64
|
||||
dns: dns-2.0.6.d8317e9-1.x86_64
|
||||
ftp: ftp-1.0.6.2710506-1.x86_64
|
||||
http: http-2.0.3.9218b4b-1.x86_64
|
||||
quic: quic-1.1.6.d6755d8-1.x86_64
|
||||
ssl: ssl-1.0.3.e8482a4-1.x86_64
|
||||
mail: mail-1.0.7.9e3be05-1.x86_64
|
||||
fw_dns: fw_dns_plug-3.0.0.0a5d574-1.x86_64
|
||||
fw_ftp: fw_ftp_plug-3.0.0.7a867ea-1.x86_64
|
||||
fw_http: fw_http_plug-3.0.0.1ca1c65-1.x86_64
|
||||
fw_quic: fw_quic_plug-3.0.0.b06d39c-1.x86_64
|
||||
fw_ssl: fw_ssl_plug-3.0.1.7ea9976-1.x86_64
|
||||
fw_mail: fw_mail_plug-3.0.0.3b4e481-1.x86_64
|
||||
tsg_conn_record: tsg_conn_record-1.0.2.2afb19a-1.x86_64
|
||||
tsg_conn_sketch: tsg_conn_sketch-2.0.v2.0_alpha.af621ca-1.x86_64
|
||||
|
||||
####################
|
||||
#tfe
|
||||
tfe: tfe-4.3.9.4d7957e-1.el7.x86_64
|
||||
tfe_kmod: tfe-kmod-v1.0.5.20200408-1dkms.noarch
|
||||
|
||||
####################
|
||||
#http_healthcheck
|
||||
http_healthcheck: http_healthcheck-20.04-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#clotho
|
||||
clotho: clotho-debug-1.0.0.-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#certstore
|
||||
certstore: certstore-2.1.2.20200828.f507b3e-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#telegraf
|
||||
telegraf_statistic: telegraf-1.13.0-1.x86_64
|
||||
93
uninstall/roles/package_list/20.09.yml
Normal file
93
uninstall/roles/package_list/20.09.yml
Normal file
@@ -0,0 +1,93 @@
|
||||
####################
|
||||
#marsio
|
||||
mrzcpd: mrzcpd-4.3.25.d88306e-1.el7.x86_64
|
||||
|
||||
####################
|
||||
#kernel
|
||||
origin_kernel: CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)
|
||||
#默认为CentOS 7.4内核,如果系统版本变更,请手动更改origin_kernel值
|
||||
|
||||
kernel_ml: kernel-ml-5.1.8-1.el7.elrepo.x86_64
|
||||
kernel_ml_devel: kernel-ml-devel-5.1.8-1.el7.elrepo.x86_64
|
||||
dkms: dkms-2.7.1-1.el7.noarch
|
||||
elfutils_libelf_devel: elfutils-libelf-devel-0.168-8.el7.x86_64
|
||||
pkgconfig: pkgconfig-0.27.1-4.el7.x86_64
|
||||
zlib_devel: zlib-devel-1.2.7-17.el7.x86_64
|
||||
|
||||
####################
|
||||
#framework
|
||||
libcjson: libcjson-1.7.8.542ad7f-1.x86_64
|
||||
libdocument: libdocumentanalyze-2.0.4.efdfc29-1.x86_64
|
||||
libmaatframe: libmaatframe-3.0.7.34de556-1.x86_64
|
||||
libMESA_field_stat: libMESA_field_stat-1.0.1.852c2df-1.x86_64
|
||||
libMESA_field_stat2: libMESA_field_stat2-2.9.1.d80b5fb-1.x86_64
|
||||
libMESA_handle_logger: libMESA_handle_logger-2.0.4.1502550-1.x86_64
|
||||
libMESA_htable: libMESA_htable-3.10.11.6275308-1.x86_64
|
||||
libMESA_prof_load: libMESA_prof_load-1.0.5.bf755de-1.x86_64
|
||||
librdkafka: librdkafka-0.11.4-1.el7.x86_64
|
||||
librulescan: librulescan-2.2.0.900d2b3-1.x86_64
|
||||
libwiredcfg: libwiredcfg-2.0.2.7ce1eea-1.x86_64
|
||||
libWiredLB: libWiredLB-2.0.3.c7d131b-1.x86_64
|
||||
lz4: lz4-1.7.5-3.el7.x86_64
|
||||
libtsglua: libtsglua-1.0.7.0864e4a-1.x86_64
|
||||
|
||||
####################
|
||||
#sapp
|
||||
sapp: sapp-4.1.7.4f2839a-1.x86_64
|
||||
|
||||
####################
|
||||
#tsg_master
|
||||
tsg_master: tsg_master-3.2.9.d1a6f00-1.x86_64
|
||||
|
||||
####################
|
||||
#kni
|
||||
kni: kni-20.09-1.el7.x86_64
|
||||
|
||||
####################
|
||||
#firewall
|
||||
capture_packet_plug: capture_packet_plug-3.0.2.09f193c-1.x86_64
|
||||
dns: dns-2.0.8.beb1d09-1.x86_64
|
||||
ftp: ftp-1.0.6.2710506-1.x86_64
|
||||
http: http-2.0.3.9218b4b-1.x86_64
|
||||
quic: quic-1.1.9.810857d-1.x86_64
|
||||
ssl: ssl-1.0.8.0068bd9-1.x86_64
|
||||
mail: mail-1.0.7.9e3be05-1.x86_64
|
||||
fw_dns: fw_dns_plug-3.0.1.453c533-1.x86_64
|
||||
fw_ftp: fw_ftp_plug-3.0.0.7a867ea-1.x86_64
|
||||
fw_http: fw_http_plug-3.0.0.1ca1c65-1.x86_64
|
||||
fw_quic: fw_quic_plug-3.0.0.b06d39c-1.x86_64
|
||||
fw_ssl: fw_ssl_plug-3.0.1.7ea9976-1.x86_64
|
||||
fw_mail: fw_mail_plug-3.0.0.3b4e481-1.x86_64
|
||||
tsg_conn_sketch: tsg_conn_sketch-2.0.5.63c1e51-1.x86_64
|
||||
|
||||
####################
|
||||
#Tsg_app
|
||||
app_sketch_local: app_sketch_local-1.0.4.0edaf58-2.x86_64
|
||||
app_control_plug: app_control_plug-1.0.3.447fc53-2.x86_64
|
||||
app_proto_identify: app_proto_identify-1.0.3.6c893f2-2.x86_64
|
||||
app_master: app_master-1.0.4.d189dee-1.x86_64
|
||||
|
||||
####################
|
||||
#tfe
|
||||
tfe: tfe-4.3.10.fb02543-1.el7.x86_64
|
||||
tfe_kmod: tfe-kmod-v1.0.5.20200408-1dkms.noarch
|
||||
|
||||
####################
|
||||
#http_healthcheck
|
||||
http_healthcheck: http_healthcheck-20.04-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#clotho
|
||||
clotho: clotho-debug-1.0.0.-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#certstore
|
||||
certstore: certstore-2.1.2.202009.87fcacf-1.el7.x86_64
|
||||
|
||||
#####################
|
||||
#telegraf
|
||||
telegraf_statistic: telegraf-1.13.0-1.x86_64
|
||||
|
||||
#####################
|
||||
#tsg-diagnose
|
||||
tsg-diagnose: tsg-diagnose-20.09-1.el7.x86_64
|
||||
16
uninstall/roles/packet_dump/tasks/main.yml
Normal file
16
uninstall/roles/packet_dump/tasks/main.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
####################
|
||||
#Uninstall packet_dump
|
||||
- name: "[uninstall packet_dump] stop packet_dump"
|
||||
systemd:
|
||||
name: packet_dump
|
||||
state: stopped
|
||||
enabled: no
|
||||
when: uninstall.packet_dump == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall packet_dump] uninstall packet_dump"
|
||||
yum:
|
||||
name:
|
||||
- "{{ packet_dump }}"
|
||||
state: absent
|
||||
when: uninstall.packet_dump == 1
|
||||
96
uninstall/roles/remove_files/tasks/main.yml
Normal file
96
uninstall/roles/remove_files/tasks/main.yml
Normal file
@@ -0,0 +1,96 @@
|
||||
- name: "remove /home/mesasoft/sapp_run"
|
||||
file:
|
||||
path: /home/mesasoft/sapp_run
|
||||
state: absent
|
||||
when: remove.sapp == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove sapp.service"
|
||||
file:
|
||||
path: /usr/lib/systemd/system/sapp.service
|
||||
state: absent
|
||||
when: remove.sapp == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove clotho files"
|
||||
file:
|
||||
path: /home/mesasoft/clotho
|
||||
state: absent
|
||||
when: remove.clotho == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove clotho.service"
|
||||
file:
|
||||
path: /usr/lib/systemd/system/clotho.service
|
||||
state: absent
|
||||
when: remove.clotho == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove http_healthcheck files"
|
||||
file:
|
||||
path: /home/mesasoft/http_healthcheck
|
||||
state: absent
|
||||
when: remove.http_healthcheck == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove telegraf_statistic files"
|
||||
file:
|
||||
path: /etc/telegraf/telegraf_statistic.conf
|
||||
state: absent
|
||||
when: remove.telegraf_statistic == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove /tmp/metrics.out"
|
||||
file:
|
||||
path: /tmp/metrics.out
|
||||
state: absent
|
||||
when: remove.telegraf_statistic == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove /home/tsg/certstore files"
|
||||
file:
|
||||
path: /home/tsg/certstore
|
||||
state: absent
|
||||
when: remove.certstore == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove /opt/tsg/certstore files"
|
||||
file:
|
||||
path: /opt/tsg/certstore
|
||||
state: absent
|
||||
when: remove.certstore == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove certstore.service"
|
||||
file:
|
||||
path: /usr/lib/systemd/system/certstore.service
|
||||
state: absent
|
||||
when: remove.certstore == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove /opt/tsg/cert-redis files"
|
||||
file:
|
||||
path: /opt/tsg/cert-redis
|
||||
state: absent
|
||||
when: remove.certredis == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove /home/tsg/cert-redis files"
|
||||
file:
|
||||
path: /home/tsg/cert-redis
|
||||
state: absent
|
||||
when: remove.certredis == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove /opt/proxy_status"
|
||||
file:
|
||||
path: /opt/proxy_status
|
||||
state: absent
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove /tmp/ansible_deploy"
|
||||
file:
|
||||
path: /tmp/ansible_deploy
|
||||
state: absent
|
||||
ignore_errors: true
|
||||
|
||||
6
uninstall/roles/remove_framework_files/tasks/main.yml
Normal file
6
uninstall/roles/remove_framework_files/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
- name: "remove framework files"
|
||||
file:
|
||||
path: /opt/MESA
|
||||
state: absent
|
||||
when: remove.framework == 1
|
||||
ignore_errors: true
|
||||
21
uninstall/roles/remove_marsio_files/tasks/main.yml
Normal file
21
uninstall/roles/remove_marsio_files/tasks/main.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
- name: "remove marsio files"
|
||||
file:
|
||||
path: /opt/mrzcpd
|
||||
state: absent
|
||||
when: remove.marsio == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove mrzcpd.service"
|
||||
file:
|
||||
path: /usr/lib/systemd/system/mrzcpd.service
|
||||
state: absent
|
||||
when: remove.marsio == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove mrtunnat.service"
|
||||
file:
|
||||
path: /usr/lib/systemd/system/mrtunnat.service
|
||||
state: absent
|
||||
when: remove.marsio == 1
|
||||
ignore_errors: true
|
||||
|
||||
28
uninstall/roles/remove_tfe_files/tasks/main.yml
Normal file
28
uninstall/roles/remove_tfe_files/tasks/main.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
- name: "remove /opt/tsg/tfe"
|
||||
file:
|
||||
path: /opt/tsg/tfe
|
||||
state: absent
|
||||
when: remove.tfe == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove tfe.service"
|
||||
file:
|
||||
path: /usr/lib/systemd/system/tfe.service
|
||||
state: absent
|
||||
when: remove.tfe == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove tfe-env.service"
|
||||
file:
|
||||
path: /usr/lib/systemd/system/tfe-env.service
|
||||
state: absent
|
||||
when: remove.tfe == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "remove tfe-env-tun-mode.service"
|
||||
file:
|
||||
path: /usr/lib/systemd/system/tfe-env-tun-mode.service
|
||||
state: absent
|
||||
when: remove.tfe == 1
|
||||
ignore_errors: true
|
||||
|
||||
17
uninstall/roles/sapp/tasks/main.yml
Normal file
17
uninstall/roles/sapp/tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
####################
|
||||
#Uninstall sapp
|
||||
- name: "[uninstall sapp] stop sapp"
|
||||
systemd:
|
||||
name: sapp
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.sapp == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall sapp] uninstall sapp"
|
||||
yum:
|
||||
name:
|
||||
- "{{ sapp }}"
|
||||
state: absent
|
||||
when: uninstall.sapp == 1
|
||||
10
uninstall/roles/telegraf_statistic/tasks/main.yml
Normal file
10
uninstall/roles/telegraf_statistic/tasks/main.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
####################
|
||||
#Uninstall telegraf_statistic
|
||||
- name: "[uninstall telegraf_statistic] stop telegraf_statistic"
|
||||
systemd:
|
||||
name: telegraf_statistic
|
||||
state: stopped
|
||||
enabled: no
|
||||
when: uninstall.telegraf_statistic == 1
|
||||
ignore_errors: true
|
||||
|
||||
27
uninstall/roles/tfe/tasks/main.yml
Normal file
27
uninstall/roles/tfe/tasks/main.yml
Normal file
@@ -0,0 +1,27 @@
|
||||
####################
|
||||
#Uninstall tfe
|
||||
- name: "[uninstall tfe] stop tfe"
|
||||
systemd:
|
||||
name: tfe
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.tfe == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall tfe] stop tfe-env"
|
||||
systemd:
|
||||
name: tfe-env
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.tfe == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall tfe] uninstall tfe"
|
||||
yum:
|
||||
name:
|
||||
- "{{ tfe }}"
|
||||
- "{{ tfe_kmod }}"
|
||||
state: absent
|
||||
when: uninstall.tfe == 1
|
||||
24
uninstall/roles/tsg_app/tasks/main.yml
Normal file
24
uninstall/roles/tsg_app/tasks/main.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
####################
|
||||
#Tsg-app
|
||||
- name: "[uninstall tsg-app] stop sapp"
|
||||
systemd:
|
||||
name: sapp
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall_version >= 20.09
|
||||
- uninstall.tsg_app == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall tsg-app] uninstall tsg_app"
|
||||
yum:
|
||||
name:
|
||||
- "{{ app_sketch_local }}"
|
||||
- "{{ app_control_plug }}"
|
||||
- "{{ app_proto_identify }}"
|
||||
- "{{ app_master }}"
|
||||
state: absent
|
||||
when:
|
||||
- uninstall_version >= 20.09
|
||||
- uninstall.tsg_app == 1
|
||||
|
||||
18
uninstall/roles/tsg_master/tasks/main.yml
Normal file
18
uninstall/roles/tsg_master/tasks/main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
####################
|
||||
#Uninstall tsg_master
|
||||
- name: "[uninstall tsg_master] stop sapp"
|
||||
systemd:
|
||||
name: sapp
|
||||
state: stopped
|
||||
enabled: no
|
||||
when:
|
||||
- uninstall.tsgmaster == 1
|
||||
ignore_errors: true
|
||||
|
||||
- name: "[uninstall tsg_master] uninstall tsg_master"
|
||||
yum:
|
||||
name:
|
||||
- "{{ tsg_master }}"
|
||||
state: absent
|
||||
when: uninstall.tsgmaster == 1
|
||||
|
||||
136
uninstall/rpm_list.sh
Normal file
136
uninstall/rpm_list.sh
Normal file
@@ -0,0 +1,136 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
mrzcpd=`rpm -qa |grep ^mrzcpd`
|
||||
libcjson=`rpm -qa |grep ^libcjson`
|
||||
libdocument=`rpm -qa |grep ^libdocument`
|
||||
libmaatframe=`rpm -qa |grep ^libmaatframe`
|
||||
libMESA_field_stat=`rpm -qa |grep ^libMESA_field_stat-`
|
||||
libMESA_field_stat2=`rpm -qa |grep ^libMESA_field_stat2`
|
||||
libMESA_handle_logger=`rpm -qa |grep ^libMESA_handle_logger`
|
||||
libMESA_htable=`rpm -qa |grep ^libMESA_htable`
|
||||
libMESA_prof_load=`rpm -qa |grep ^libMESA_prof_load`
|
||||
librdkafka=`rpm -qa |grep ^librdkafka`
|
||||
librulescan=`rpm -qa |grep ^librulescan`
|
||||
libwiredcfg=`rpm -qa |grep ^libwiredcfg`
|
||||
libWiredLB=`rpm -qa |grep ^libWiredLB`
|
||||
lz4=`rpm -qa |grep ^lz4`
|
||||
libtsglua=`rpm -qa |grep ^libtsglua`
|
||||
sapp=`rpm -qa |grep ^sapp`
|
||||
tsg_master=`rpm -qa |grep ^tsg_master`
|
||||
kni=`rpm -qa |grep ^kni`
|
||||
capture_packet_plug=`rpm -qa |grep ^capture_packet_plug`
|
||||
dns=`rpm -qa |grep ^dns-`
|
||||
ftp=`rpm -qa |grep ^ftp-`
|
||||
mail=`rpm -qa |grep ^mail-`
|
||||
ssl=`rpm -qa |grep ^ssl-`
|
||||
quic=`rpm -qa |grep ^quic-`
|
||||
http=`rpm -qa |grep ^http-2`
|
||||
fw_dns=`rpm -qa |grep ^fw_dns`
|
||||
fw_ftp=`rpm -qa |grep ^fw_ftp`
|
||||
fw_http=`rpm -qa |grep ^fw_http`
|
||||
fw_quic=`rpm -qa |grep ^fw_quic`
|
||||
fw_ssl=`rpm -qa |grep ^fw_ssl`
|
||||
fw_mail=`rpm -qa |grep ^fw_mail`
|
||||
tsg_conn_sketch=`rpm -qa |grep ^tsg_conn_sketch`
|
||||
tsg_conn_record=`rpm -qa |grep ^tsg_conn_record`
|
||||
app_sketch_local=`rpm -qa |grep ^app_sketch_local`
|
||||
app_control_plug=`rpm -qa |grep ^app_control_plug`
|
||||
app_proto_identify=`rpm -qa |grep ^app_proto_identify`
|
||||
app_master=`rpm -qa |grep ^app_master`
|
||||
tfe=`rpm -qa |grep ^tfe-4`
|
||||
tfe_kmod=`rpm -qa |grep ^tfe-kmod`
|
||||
http_healthcheck=`rpm -qa |grep ^http_healthcheck`
|
||||
clotho=`rpm -qa |grep ^clotho`
|
||||
packet_dump=`rpm -qa |grep ^packet_dump`
|
||||
certstore=`rpm -qa |grep ^certstore`
|
||||
|
||||
|
||||
cat > ./tsg_version.yml <<EOF
|
||||
####################
|
||||
#marsio
|
||||
mrzcpd: $mrzcpd
|
||||
|
||||
####################
|
||||
#kernel
|
||||
kernel_ml: kernel-ml-5.1.8-1.el7.elrepo.x86_64
|
||||
kernel_ml_devel: kernel-ml-devel-5.1.8-1.el7.elrepo.x86_64
|
||||
dkms: dkms-2.7.1-1.el7.noarch
|
||||
elfutils_libelf_devel: elfutils-libelf-devel-0.168-8.el7.x86_64
|
||||
pkgconfig: pkgconfig-0.27.1-4.el7.x86_64
|
||||
zlib_devel: zlib-devel-1.2.7-17.el7.x86_64
|
||||
|
||||
####################
|
||||
#framework
|
||||
libcjson: $libcjson
|
||||
libdocument: $libdocument
|
||||
libmaatframe: $libmaatframe
|
||||
libMESA_field_stat: $libMESA_field_stat
|
||||
libMESA_field_stat2: $libMESA_field_stat2
|
||||
libMESA_handle_logger: $libMESA_handle_logger
|
||||
libMESA_htable: $libMESA_htable
|
||||
libMESA_prof_load: $libMESA_prof_load
|
||||
librdkafka: $librdkafka
|
||||
librulescan: $librulescan
|
||||
libwiredcfg: $libwiredcfg
|
||||
libWiredLB: $libWiredLB
|
||||
lz4: $lz4
|
||||
libtsglua: $libtsglua
|
||||
|
||||
####################
|
||||
#sapp
|
||||
sapp: $sapp
|
||||
|
||||
####################
|
||||
#tsg_master
|
||||
tsg_master: $tsg_master
|
||||
|
||||
####################
|
||||
#kni
|
||||
kni: $kni
|
||||
|
||||
####################
|
||||
#firewall
|
||||
capture_packet_plug: $capture_packet_plug
|
||||
dns: $dns
|
||||
ftp: $ftp
|
||||
http: $http
|
||||
quic: $quic
|
||||
ssl: $ssl
|
||||
mail: $mail
|
||||
fw_dns: $fw_dns
|
||||
fw_ftp: $fw_ftp
|
||||
fw_http: $fw_http
|
||||
fw_quic: $fw_quic
|
||||
fw_ssl: $fw_ssl
|
||||
fw_mail: $fw_mail
|
||||
tsg_conn_sketch: $tsg_conn_sketch
|
||||
tsg_conn_record: $tsg_conn_record
|
||||
|
||||
####################
|
||||
#Tsg_app
|
||||
app_sketch_local: $app_sketch_local
|
||||
app_control_plug: $app_control_plug
|
||||
app_proto_identify: $app_proto_identify
|
||||
app_master: $app_master
|
||||
|
||||
####################
|
||||
#tfe
|
||||
tfe: $tfe
|
||||
tfe_kmod: $tfe_kmod
|
||||
|
||||
####################
|
||||
#http_healthcheck
|
||||
http_healthcheck: $http_healthcheck
|
||||
|
||||
#####################
|
||||
#clotho
|
||||
clotho: $clotho
|
||||
|
||||
#packet_dump
|
||||
packet_dump: $packet_dump
|
||||
|
||||
#####################
|
||||
#certstore
|
||||
certstore: $certstore
|
||||
|
||||
EOF
|
||||
52
uninstall/uninstall_config/group_vars/uninstall_vars.yml
Normal file
52
uninstall/uninstall_config/group_vars/uninstall_vars.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
####################
|
||||
#Uninstall the target TSG version
|
||||
#Support 20.09 / 20.08 / 20.07 / 20.07.rc1 / 20.06.1
|
||||
uninstall_version: 20.09
|
||||
|
||||
####################
|
||||
#Backup
|
||||
backup_dest_path: /root/backup_data
|
||||
date: 20200925
|
||||
backup:
|
||||
tsg_env: 1
|
||||
marsio: 1
|
||||
framework: 1
|
||||
sapp_etc: 1
|
||||
sapp_plug: 1
|
||||
sapp_tsgconf: 1
|
||||
sapp_appconf: 1
|
||||
sapp_conf: 1
|
||||
tfe: 1
|
||||
|
||||
####################
|
||||
#Uninstall list
|
||||
uninstall:
|
||||
kernel: 0
|
||||
marsio: 1
|
||||
kni: 1
|
||||
tsg_app: 1
|
||||
tsgmaster: 1
|
||||
firewall: 1
|
||||
sapp: 1
|
||||
tfe: 1
|
||||
certstore: 1
|
||||
certredis: 1
|
||||
clotho: 1
|
||||
http_healthcheck: 1
|
||||
framework: 1
|
||||
telegraf_statistic: 1
|
||||
tsg_diagnose: 0
|
||||
|
||||
####################
|
||||
#Remove list
|
||||
remove:
|
||||
framework: 1
|
||||
marsio: 1
|
||||
sapp: 1
|
||||
tfe: 1
|
||||
clotho: 1
|
||||
certstore: 1
|
||||
certredis: 1
|
||||
http_healthcheck: 1
|
||||
telegraf_statistic: 1
|
||||
|
||||
18
uninstall/uninstall_config/hosts
Normal file
18
uninstall/uninstall_config/hosts
Normal file
@@ -0,0 +1,18 @@
|
||||
####################
|
||||
# For example #
|
||||
####################
|
||||
#
|
||||
#[uninstall_server]
|
||||
#1.1.1.1
|
||||
#
|
||||
#[uninstall_adc_mcn0]
|
||||
#10.3.72.1
|
||||
#
|
||||
#[uninstall_adc_mcn123]
|
||||
#10.3.73.1
|
||||
#10.3.74.1
|
||||
#10.3.75.1
|
||||
[uninstall_server]
|
||||
192.168.40.225
|
||||
[uninstall_adc_mcn0]
|
||||
[uninstall_adc_mcn123]
|
||||
76
uninstall/uninstall_tsg.yml
Normal file
76
uninstall/uninstall_tsg.yml
Normal file
@@ -0,0 +1,76 @@
|
||||
- hosts: uninstall_server
|
||||
remote_user: root
|
||||
roles:
|
||||
- backup_framework_config
|
||||
- backup_marsio_config
|
||||
- backup_sapp_config
|
||||
- backup_tfe_config
|
||||
- backup_tsgenv_config
|
||||
- kernel
|
||||
- marsio
|
||||
- kni
|
||||
- tsg_app
|
||||
- tsg_master
|
||||
- firewall
|
||||
- sapp
|
||||
- tfe
|
||||
- certstore
|
||||
- cert_redis
|
||||
- clotho
|
||||
- packet_dump
|
||||
- http_healthcheck
|
||||
- framework
|
||||
- telegraf_statistic
|
||||
- remove_files
|
||||
- remove_framework_files
|
||||
- remove_marsio_files
|
||||
- remove_tfe_files
|
||||
vars_files:
|
||||
- uninstall_config/group_vars/uninstall_vars.yml
|
||||
- roles/package_list/20.09.yml
|
||||
|
||||
- hosts: uninstall_adc_mcn0
|
||||
remote_user: root
|
||||
roles:
|
||||
- backup_framework_config
|
||||
- backup_marsio_config
|
||||
- backup_sapp_config
|
||||
- backup_tsgenv_config
|
||||
- kernel
|
||||
- marsio
|
||||
- kni
|
||||
- tsg_app
|
||||
- tsg_master
|
||||
- firewall
|
||||
- sapp
|
||||
- certstore
|
||||
- cert_redis
|
||||
- clotho
|
||||
- packet_dump
|
||||
- http_healthcheck
|
||||
- framework
|
||||
- telegraf_statistic
|
||||
- remove_files
|
||||
- remove_framework_files
|
||||
- remove_marsio_files
|
||||
vars_files:
|
||||
- uninstall_config/group_vars/uninstall_vars.yml
|
||||
- roles/package_list/20.09.yml
|
||||
|
||||
- hosts: uninstall_adc_mcn123
|
||||
remote_user: root
|
||||
roles:
|
||||
- backup_framework_config
|
||||
- backup_marsio_config
|
||||
- backup_tfe_config
|
||||
- backup_tsgenv_config
|
||||
- kernel
|
||||
- marsio
|
||||
- tfe
|
||||
- framework
|
||||
- remove_framework_files
|
||||
- remove_marsio_files
|
||||
- remove_tfe_files
|
||||
vars_files:
|
||||
- uninstall_config/group_vars/uninstall_vars.yml
|
||||
- roles/package_list/20.09.yml
|
||||
Reference in New Issue
Block a user