variable "user" {}
variable "password" {}

# Terraform backends cannot contain interpolations
terraform {
  backend "s3" {
    bucket  = "orcd-terraform-state"
    key     = "dev/dev-db-accounting/terraform.tfstate"
    region  = "us-east-1"
    encrypt = "true"
  }
}

module "vmware_vms" {
  source = "git@github.com:theorchard/terraform-vmware.git//?ref=1.1.1"

  vsphere_user     = "${var.user}" # # use this syntax, username@domain.com and NOT domain\username when prompt.
  vsphere_password = "${var.password}"
  vsphere_server   = "ny-vsphere01.theorchard.local"

  vm_hostnames = [
    "dev-db-accounting"
  ]
  vm_domain = "theorchard.local"

  vsphere_datacenter_name      = "ny-vsphere-dc"
  vsphere_datastore_name       = "nimble2-vol11"
  vsphere_compute_cluster_name = "ny-vsphere-cluster"
  vsphere_network_name         = "Server Network"
  vm_template_name             = "DB_dev_ARDB_template_centos7"
}
