65 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			INI
		
	
	
	
			
		
		
	
	
			65 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			INI
		
	
	
	
# CSOL Consul 静态节点配置
 | 
						||
# 更新时间: 2025-06-17 (基于实际Consul集群信息更新)
 | 
						||
# 此文件包含所有CSOL的服务器和客户端节点信息
 | 
						||
 | 
						||
[consul_servers]
 | 
						||
# 主要服务器节点 (全部为服务器模式)
 | 
						||
master ansible_host=100.117.106.136 ansible_user=ben ansible_password=3131 ansible_become_password=3131 ansible_port=60022
 | 
						||
ash3c ansible_host=100.116.80.94 ansible_user=ben ansible_password=3131 ansible_become_password=3131
 | 
						||
warden ansible_host=100.122.197.112 ansible_user=ben ansible_password=3131 ansible_become_password=3131
 | 
						||
 | 
						||
[consul_clients]
 | 
						||
# 客户端节点
 | 
						||
bj-warden ansible_host=100.122.197.112 ansible_user=ben ansible_password=3131 ansible_become_password=3131
 | 
						||
bj-hcp2 ansible_host=100.116.112.45 ansible_user=root ansible_password=313131 ansible_become_password=313131
 | 
						||
bj-influxdb ansible_host=100.100.7.4 ansible_user=root ansible_password=313131 ansible_become_password=313131
 | 
						||
bj-hcp1 ansible_host=100.97.62.111 ansible_user=root ansible_password=313131 ansible_become_password=313131
 | 
						||
 | 
						||
[consul_cluster:children]
 | 
						||
consul_servers
 | 
						||
consul_clients
 | 
						||
 | 
						||
[consul_servers:vars]
 | 
						||
# Consul服务器配置
 | 
						||
consul_server=true
 | 
						||
consul_bootstrap_expect=3
 | 
						||
consul_datacenter=dc1
 | 
						||
consul_encrypt_key=1EvGItLOB8nuHnSA0o+rO0zXzLeJl+U+Jfvuw0+H848=
 | 
						||
consul_client_addr=0.0.0.0
 | 
						||
consul_bind_addr="{{ ansible_default_ipv4.address }}"
 | 
						||
consul_data_dir=/opt/consul/data
 | 
						||
consul_config_dir=/etc/consul.d
 | 
						||
consul_log_level=INFO
 | 
						||
consul_port=8500
 | 
						||
consul_ui_config=true
 | 
						||
 | 
						||
[consul_clients:vars]
 | 
						||
# Consul客户端配置
 | 
						||
consul_server=false
 | 
						||
consul_datacenter=dc1
 | 
						||
consul_encrypt_key=1EvGItLOB8nuHnSA0o+rO0zXzLeJl+U+Jfvuw0+H848=
 | 
						||
consul_client_addr=0.0.0.0
 | 
						||
consul_bind_addr="{{ ansible_default_ipv4.address }}"
 | 
						||
consul_data_dir=/opt/consul/data
 | 
						||
consul_config_dir=/etc/consul.d
 | 
						||
consul_log_level=INFO
 | 
						||
 | 
						||
[consul_cluster:vars]
 | 
						||
# 通用配置
 | 
						||
ansible_ssh_common_args='-o StrictHostKeyChecking=no'
 | 
						||
ansible_ssh_private_key_file=~/.ssh/id_ed25519
 | 
						||
consul_version=1.21.5
 | 
						||
 | 
						||
# === 节点说明 ===
 | 
						||
# 服务器节点 (3个):
 | 
						||
#   - bj-semaphore: 100.116.158.95 (主要服务器节点)
 | 
						||
#   - kr-master: 100.117.106.136 (韩国主节点)
 | 
						||
#   - us-ash3c: 100.116.80.94 (美国服务器节点)
 | 
						||
#
 | 
						||
# 客户端节点 (4个):
 | 
						||
#   - bj-warden: 100.122.197.112 (北京客户端节点)
 | 
						||
#   - bj-hcp2: 100.116.112.45 (北京HCP客户端节点2)
 | 
						||
#   - bj-influxdb: 100.100.7.4 (北京InfluxDB客户端节点)
 | 
						||
#   - bj-hcp1: 100.97.62.111 (北京HCP客户端节点1)
 | 
						||
#
 | 
						||
# 注意: 此配置基于实际Consul集群信息更新,包含3个服务器节点 |