1、增加初始化运行环境配置文件的部署脚本

2、修改与运行环境相关的配置文件的template文件模板名字
This commit is contained in:
fumingwei
2021-05-08 18:27:14 +08:00
parent dc7dfe8de0
commit 52c76ec953
25 changed files with 334 additions and 16 deletions

View File

@@ -15,8 +15,8 @@
- name: template certstore configure file
template:
src: "{{ role_path }}/templates/cert_store.ini.j2"
dest: /opt/tsg/certstore/conf/cert_store.ini
src: "{{ role_path }}/templates/cert_store.ini.j2.j2"
dest: /opt/tsg/init_runtime/roles/certstore/templates/cert_store.ini.j2
- name: template certstore zlog file
template:

View File

@@ -33,15 +33,15 @@
- name: "Template the tsgconf/main.conf"
template:
src: "{{ role_path }}/templates/main.conf.j2"
dest: /home/mesasoft/sapp_run/tsgconf/main.conf
src: "{{ role_path }}/templates/main.conf.j2.j2"
dest: /opt/tsg/init_runtime/roles/firewall/templates/main.conf.j2
tags: template
- name: "Template the tsgconf/maat.conf"
template:
src: "{{ role_path }}/templates/maat.conf.j2"
dest: /home/mesasoft/sapp_run/tsgconf/maat.conf
src: "{{ role_path }}/templates/maat.conf.j2.j2"
dest: /opt/tsg/init_runtime/roles/firewall/templates/maat.conf.j2
tags: template
- name: "Template the conf/capture_packet_plug.conf.j2"

View File

@@ -30,8 +30,8 @@
- name: Template the sapp.toml
template:
src: "{{ role_path }}/templates/sapp.toml.j2"
dest: /home/mesasoft/sapp_run/etc/sapp.toml
src: "{{ role_path }}/templates/sapp.toml.j2.j2"
dest: /opt/tsg/init_runtime/roles/sapp/templates/sapp.toml.j2
tags: template
- name: Template the project_list.conf

View File

@@ -11,8 +11,8 @@
- name: "Templates telegraf.conf"
template:
src: "{{role_path}}/templates/telegraf_statistic.conf.j2"
dest: /etc/telegraf/telegraf_statistic.conf
src: "{{role_path}}/templates/telegraf_statistic.conf.j2.j2"
dest: /opt/tsg/init_runtime/roles/telegraf_statistic/templates/telegraf_statistic.conf.j2
tags: template
- name: "copy telegraf_statistic.service to destination server"
@@ -20,5 +20,3 @@
src: "{{ role_path }}/files/telegraf_statistic.service"
dest: /usr/lib/systemd/system
mode: 0644

View File

@@ -29,8 +29,8 @@
- name: "template the tfe.conf"
template:
src: "{{ role_path }}/templates/tfe.conf.j2"
dest: /opt/tsg/tfe/conf/tfe/tfe.conf
src: "{{ role_path }}/templates/tfe.conf.j2.j2"
dest: /opt/tsg/init_runtime/roles/tfe/templates/tfe.conf.j2
- name: "template the zlog.conf"
template:
@@ -44,8 +44,8 @@
- name: "template the pangu_pxy.conf"
template:
src: "{{ role_path }}/templates/pangu_pxy.conf.j2"
dest: /opt/tsg/tfe/conf/pangu/pangu_pxy.conf
src: "{{ role_path }}/templates/pangu_pxy.conf.j2.j2"
dest: /opt/tsg/init_runtime/roles/tfe/templates/pangu_pxy.conf.j2
- name: "create conf/doh/"
file: