from .xlate import XLATOR
-__version__ = '3.6.1'
+__version__ = '3.6.2'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
# create manually a file 'terraform-private.auto.tfvars"
# with the following content:
#
- # vsphere_password = "<PASSWORD>"
+ # vsphere_username = "<USERNAME>"
+ # vsphere_userpasswd = "<PASSWORD>"
# pdns_api_key = "<API-KEY>"
#
# with the correct values. This file will not be under GIT control
if vs_user or vs_pwd:
content = '# Private sensible information. Please keep this file secret.\n\n'
if vs_user:
- content += 'vsphere_user = "{}"\n.'.format(vs_user)
+ content += 'vsphere_username = "{}"\n.'.format(vs_user)
if vs_pwd:
- content += 'vsphere_password = "{}""\n.'.format(vs_pwd)
+ content += 'vsphere_userpasswd = "{}""\n.'.format(vs_pwd)
content += '\n'
LOG.debug(_("Creating {!r} ...").format('private.auto.tfvars'))
content += tpl.format(vs_host)
tpl = textwrap.dedent('''\
- variable "vsphere_user" {
+ variable "vsphere_username" {
description = "vSphere accountname to be used."
type = string
}
- variable "vsphere_password" {
+ variable "vsphere_userpassword" {
description = "Password for vSphere accountname."
type = string
}
provider "vsphere" {
vsphere_server = var.vsphere_vcenter
- user = var.vsphere_user
- password = var.vsphere_password
+ user = var.vsphere_username
+ password = var.vsphere_userpassword
allow_unverified_ssl = true
''')