File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
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 :
4
+ " AZURE_${key}" => {
5
+ " host" = value.public_ip_address
6
+ " name" = value.name
7
+ " user" = var.AZURE_MACHINE_CONFIGS[key].default_user
8
+ " connect_kwargs" = {
9
+ " key_filename" : var.PRIVATE_KEY_PATH
10
+ }
11
+ " public_ssh_link" = " ssh -i ${ var . PRIVATE_KEY_PATH } ${ var . AZURE_MACHINE_CONFIGS [key ]. default_user } @${ value . public_ip_address } "
12
+ " sleep" : var.AZURE_MACHINE_CONFIGS[key].sleep
13
+ }
14
+ },
15
+ {
16
+ for key , value in azurerm_windows_virtual_machine . windows_host_test :
3
17
" AZURE_${key}" => {
4
18
" host" = value.public_ip_address
5
19
" name" = value.name
@@ -11,4 +25,5 @@ output "fab_hosts" {
11
25
" sleep" : var.AZURE_MACHINE_CONFIGS[key].sleep
12
26
}
13
27
}
28
+ )
14
29
}
You can’t perform that action at this time.
0 commit comments