File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1
1
output "fab_hosts" {
2
- value = { for key , value in azurerm_linux_virtual_machine . linux_host_test :
2
+ value = merge ({
3
+ for key , value in azurerm_linux_virtual_machine . linux_host_test :
3
4
" AZURE_${key}" => {
4
5
" host" = value.public_ip_address
5
6
" name" = value.name
@@ -10,5 +11,19 @@ output "fab_hosts" {
10
11
" public_ssh_link" = " ssh -i ${ var . PRIVATE_KEY_PATH } ${ var . AZURE_MACHINE_CONFIGS [key ]. default_user } @${ value . public_ip_address } "
11
12
" sleep" : var.AZURE_MACHINE_CONFIGS[key].sleep
12
13
}
14
+ },
15
+ {
16
+ for key , value in azurerm_windows_virtual_machine . windows_host_test :
17
+ " AZURE_${key}" => {
18
+ " host" = value.public_ip_address
19
+ " name" = value.name
20
+ " user" = var.AZURE_WIN_MACHINE_CONFIGS[key].default_user
21
+ " connect_kwargs" = {
22
+ " key_filename" : var.PRIVATE_KEY_PATH
23
+ }
24
+ " public_ssh_link" = " ssh -i ${ var . PRIVATE_KEY_PATH } ${ var . AZURE_MACHINE_CONFIGS [key ]. default_user } @${ value . public_ip_address } "
25
+ " sleep" : var.AZURE_WIN_MACHINE_CONFIGS[key].sleep
26
+ }
13
27
}
28
+ )
14
29
}
Original file line number Diff line number Diff line change @@ -97,14 +97,14 @@ variable "AZURE_WIN_MACHINE_CONFIGS" {
97
97
default = {
98
98
# az vm image list --output table --all --publisher MicrosoftWindowsDesktop --sku win10-21h2-ent
99
99
W10_ENT_21H2 = {
100
- recreate = " changethistorecreate1 "
100
+ recreate = " changethistorecreate "
101
101
machine_type = " Standard_DS1_v2"
102
102
description = " Windows 10 Enterprise 21H2"
103
103
default_user = " test-user"
104
104
default_password = " km$3MWPf&i6r4o@I"
105
105
computer_name = " W10ENT21H2"
106
106
wait = " 120"
107
- user_data = " user_data/windows_observe .ps"
107
+ user_data = " user_data/windows .ps"
108
108
source_image_reference = {
109
109
publisher = " MicrosoftWindowsDesktop"
110
110
offer = " Windows-10"
You can’t perform that action at this time.
0 commit comments