feature:7400和9140配置默认不启动consul服务

This commit is contained in:
fumingwei
2023-08-20 20:14:50 +08:00
parent 37f9be9b60
commit ad1a5e6c0b
9 changed files with 22 additions and 10 deletions

View File

@@ -94,7 +94,7 @@ consul_agent:
node_name: ""
shaping:
enable: 1
enable: 0
sid:
shaping: 1000

View File

@@ -93,7 +93,7 @@ consul_agent:
node_name: ""
shaping:
enable: 1
enable: 0
sid:
shaping: 1000

View File

@@ -89,4 +89,4 @@ consul_agent:
node_name: ""
shaping:
enable: 1
enable: 0

View File

@@ -102,7 +102,7 @@ consul_agent:
node_name: ""
shaping:
enable: 1
enable: 0
sid:
shaping: 1000

View File

@@ -101,7 +101,7 @@ consul_agent:
node_name: ""
shaping:
enable: 1
enable: 0
sid:
shaping: 1000

View File

@@ -206,6 +206,7 @@
src: "../templates/consul.hcl.j2"
dest: /etc/consul.d/consul.hcl
tags: consul
when: shaping.enable == 1
- name: "mkdir /opt/tsg/etc/"
file:
@@ -279,7 +280,9 @@
systemd:
name: consul
state: restarted
when: enable_config_apply == '1'
when:
- enable_config_apply == '1'
- shaping.enable == 1
- name: "tsg-os-provision: restart mrenv"
systemd:

View File

@@ -155,7 +155,8 @@
template:
src: "../templates/consul.hcl.j2"
dest: /etc/consul.d/consul.hcl
tags: consul
tags: consul
when: shaping.enable == 1
- name: "mkdir /opt/tsg/etc/"
file:
@@ -250,7 +251,9 @@
systemd:
name: consul
state: restarted
when: enable_config_apply == '1'
when:
- enable_config_apply == '1'
- shaping.enable == 1
- name: "tsg-os-provision: start mrenv"
systemd:

View File

@@ -225,6 +225,7 @@
src: "../templates/consul.hcl.j2"
dest: /etc/consul.d/consul.hcl
tags: consul
when: shaping.enable == 1
- name: "mkdir /opt/tsg/etc/"
file:
@@ -315,7 +316,9 @@
systemd:
name: consul
state: restarted
when: enable_config_apply == '1'
when:
- enable_config_apply == '1'
- shaping.enable == 1
- name: "tsg-os-provision: restart mrenv"
systemd:

View File

@@ -113,6 +113,7 @@
src: "../templates/consul.hcl.j2"
dest: /etc/consul.d/consul.hcl
tags: consul
when: shaping.enable == 1
- name: "mkdir /opt/tsg/etc/"
file:
@@ -165,7 +166,9 @@
systemd:
name: consul
state: restarted
when: enable_config_apply == '1'
when:
- enable_config_apply == '1'
- shaping.enable == 1
- name: "tsg-os-provision: restart mrenv"
systemd: