-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathVariables.tf
More file actions
67 lines (55 loc) · 1.98 KB
/
Variables.tf
File metadata and controls
67 lines (55 loc) · 1.98 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
variable "azure_resource_group_name" {
description = "Resource Group Name"
default = "ninjagroup"
}
variable "vm_name_prefix" {
description = "The Virtual Machine Name"
default = "ninjatestvm"
}
variable "vm_count" {
description = "Number of VMs to create"
default = "2"
}
#Re-applying a new size reboots the VMs and re-runs the provisioner scripts - Use DSC Push to configure to avoid errors
variable "vm_size" {
description = "Azure VM Size"
default = "Standard_A1"
}
variable "vm_winrm_port" {
description = "WinRM Public Port"
default = "5986"
}
variable "azure_region" {
description = "Azure Region for all resources"
default = "northeurope"
}
variable "azure_region_fullname" {
description = "Long name for the Azure Region, ie. North Europe"
default = "North Europe"
}
variable "azure_dns_suffix" {
description = "Azure DNS suffix for the Public IP"
default = "cloudapp.azure.com"
}
variable "admin_username" {
description = "Username for the Administrator account"
default = "TestAdmin"
}
variable "admin_password" {
description = "Password for the Administrator account"
default = "jgjgJGJG!!!!"
}
variable "environment_tag" {
description = "Tag to apply to the resoucrces"
default = "Terraform-AzureRM-Example"
}
#Null resource to make the VM intermediate varable - probably not the right way to do this
#resource "null_resource" "intermediates" {
# triggers = {
# full_vm_dns_name = "Param($RemoteHostName = \"${var.vm_name_prefix}-1.${var.azure_region}.${var.azure_dns_suffix}\", $ComputerName = \"${var.vm_name_prefix}-1\", $WinRmPort = ${var.vm_winrm_port}) ${file("Deploy.PS1")}"
# #full_vm_dns_name = "Param($RemoteHostName = \"${null_resource.intermediates.triggers.full_vm_dns_name}\", $ComputerName = \"${var.vm_name}\", $WinRmPort = ${var.vm_winrm_port}) ${file("Deploy.PS1")}"
# }
#}
#output "full_vm_dns_name" {
# value = "${null_resource.intermediates.triggers.full_vm_dns_name}"
#}