60 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HCL
		
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			HCL
		
	
	
	
| # Nomad 多数据中心生产环境变量
 | |
| 
 | |
| # 部署控制
 | |
| variable "deploy_korea_node" {
 | |
|   description = "是否部署韩国节点 (Oracle Cloud)"
 | |
|   type        = bool
 | |
|   default     = false  # 禁用以避免创建计算资源
 | |
| }
 | |
| 
 | |
| variable "deploy_us_node" {
 | |
|   description = "是否部署美国节点 (华为云)"
 | |
|   type        = bool
 | |
|   default     = false  # 禁用以避免创建计算资源
 | |
| }
 | |
| 
 | |
| # Oracle Cloud 配置
 | |
| variable "oracle_tenancy_ocid" {
 | |
|   description = "Oracle Cloud 租户 OCID"
 | |
|   type        = string
 | |
|   sensitive   = true
 | |
| }
 | |
| 
 | |
| variable "oracle_user_ocid" {
 | |
|   description = "Oracle Cloud 用户 OCID"
 | |
|   type        = string
 | |
|   sensitive   = true
 | |
| }
 | |
| 
 | |
| variable "oracle_fingerprint" {
 | |
|   description = "Oracle Cloud API 密钥指纹"
 | |
|   type        = string
 | |
|   sensitive   = true
 | |
| }
 | |
| 
 | |
| variable "oracle_private_key_path" {
 | |
|   description = "Oracle Cloud 私钥文件路径"
 | |
|   type        = string
 | |
|   sensitive   = true
 | |
| }
 | |
| 
 | |
| # 华为云配置
 | |
| variable "huawei_access_key" {
 | |
|   description = "华为云访问密钥"
 | |
|   type        = string
 | |
|   sensitive   = true
 | |
| }
 | |
| 
 | |
| variable "huawei_secret_key" {
 | |
|   description = "华为云秘密密钥"
 | |
|   type        = string
 | |
|   sensitive   = true
 | |
| }
 | |
| 
 | |
| # Nomad 配置
 | |
| variable "nomad_encrypt_key" {
 | |
|   description = "Nomad 集群加密密钥"
 | |
|   type        = string
 | |
|   sensitive   = true
 | |
|   default     = "NVOMDvXblgWfhtzFzOUIHnKEOrbXOkPrkIPbRGGf1YQ="
 | |
| } |