问题描述
我正在为我的 VM 资源“vsphere_virtual_machine”“vm”运行几个文件配置器 每次我都必须制作连接字符串。我可以知道如何将连接字符串放入一个变量中,这样我就不必每次都创建它吗?
provisioner "file" {
source = "somepath"
destination = "somepath"
connection {
insecure = true
host = self.default_ip_address
type = "winrm"
user = "Administrator"
password = "Passw0rd!"
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)