-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
38 lines (34 loc) · 1.32 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
terraform {
backend "artifactory" {
url = "https://artifactory.company.com/artifactory"
repo = "pta-terraform"
subpath = "template-centos-7-prod"
}
}
provider "vsphere" {
user = var.vsphere_user
password = var.vsphere_password
vsphere_server = "vc.company.com"
# The released versions are listed here: https://github.com/terraform-providers/terraform-provider-vsphere/releases
version = "~> 1.15.0"
# If you have a self-signed cert
allow_unverified_ssl = true
}
# Golden Image
module "template-centos-7-prod" {
source = "git::https://github.com/Forcepoint/fp-pta-terraform-vsphere-vm-linux-datastore-cluster.git?ref=master"
name = "template-centos-7-prod"
folder = "PTA/Prod"
vm_clone_from = "PTA/Test/template-centos-7-test"
ipv4_address = "192.168.0.10"
ipv4_netmask = 24
ipv4_gateway = "192.168.0.1"
dns_suffix_list = ["company.com"]
dns_server_list = ["192.168.0.2"]
domain = "company.com"
time_zone = "MST7MDT"
vlan_main = "VLAN-192"
vsphere_datastore_cluster = "DS Cluster"
vsphere_compute_cluster = "Compute Cluster"
vsphere_datacenter = "Company DC"
}