Files
terraform-vm/variables.tf
yanbang 078be77e0f test:1
2026-02-06 13:44:35 +08:00

34 lines
1.1 KiB
HCL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#通过流水线创建的虚拟机都需要通过这份文件进行密钥管理
variable "ssh_key" {
description = "虚拟机SSH登录公钥"
type = string
default = "xxx" // 占位符真实值从建木密钥获取
}
variable "vsphere_user" {
description = "vSphere/VCenter管理员登录用户名"
type = string
default = "xxx" // vcenter用户名
sensitive = true // 标记为敏感信息Terraform日志隐藏输出
}
variable "vsphere_password" {
description = "vSphere/VCenter管理员登录密码"
type = string
default = "xxx" // vcenter密码
sensitive = true // 标记为敏感信息Terraform日志隐藏输出
}
variable "vsphere_server" {
description = "vSphere地址"
type = string
default = "xxx" // 服务器地址
}
variable "ssh_private_key_content" {
description = "SH私钥内容用于Terraform远程连接虚拟机)"
type = string
default = "xxx" # 占位符,真实值从建木获取
sensitive = true # 标记为敏感Terraform 日志会隐藏,防止泄露
}