44 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			INI
		
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			INI
		
	
	
	
| # Consul 静态节点配置
 | ||
| # 此文件包含所有CSOL的服务器和客户端节点信息
 | ||
| # 更新时间: 2025-06-17 (基于实际Consul集群信息更新)
 | ||
| 
 | ||
| # === CSOL 服务器节点 ===
 | ||
| # 这些节点运行Consul服务器模式,参与集群决策和数据存储
 | ||
| 
 | ||
| [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_cluster:children]
 | ||
| consul_servers
 | ||
| 
 | ||
| [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_cluster:vars]
 | ||
| # 通用配置
 | ||
| ansible_ssh_common_args='-o StrictHostKeyChecking=no'
 | ||
| consul_version=1.21.5
 | ||
| 
 | ||
| # === 节点说明 ===
 | ||
| # 服务器节点 (3个):
 | ||
| #   - master: 100.117.106.136 (韩国主节点)
 | ||
| #   - ash3c: 100.116.80.94 (美国服务器节点)
 | ||
| #   - warden: 100.122.197.112 (北京服务器节点,当前集群leader)
 | ||
| #
 | ||
| # 注意: 此配置基于实际Consul集群信息更新,所有节点均为服务器模式 |