File tree 3 files changed +14
-5
lines changed
3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,11 @@ module "ado_vmss_agent_pool" {
72
72
73
73
## Outputs
74
74
75
- | Name | Description |
76
- | ----------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
77
- | <a name =" output_vmss_id " ></a > [ vmss\_ id] ( #output\_ vmss\_ id ) | VM Scale Sets id |
78
- | <a name =" output_public_ip_prefix " ></a > [ public\_ ip\_ prefix] ( #output\_ public\_ ip\_ prefix ) | Public IP Address Prefix CIDR |
75
+ | Name | Description |
76
+ | ------------------------------------------------------------------------------------------| ---------------------------------|
77
+ | <a name =" output_vmss_id " ></a > [ vmss\_ id] ( #output\_ vmss\_ id ) | VM Scale Sets id |
78
+ | <a name =" output_public_ip_prefix " ></a > [ public\_ ip\_ prefix] ( #output\_ public\_ ip\_ prefix ) | Public IP Address Prefix CIDR |
79
+ | <a name =" output_tls_key " ></a > [ tls\_ key] ( #output\_ tls\_ key ) | SSH Key for VMSS authorization |
79
80
80
81
<!-- END_TF_DOCS -->
81
82
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ module "vmss" {
18
18
type = " CustomScript"
19
19
type_handler_version = " 2.0"
20
20
settings = jsonencode ({
21
- " script" : (base64encode (" apt-get update -y && apt-get upgrade -y; apt-get -y install unzip" ))
21
+ " script" : (base64encode (" apt-get update -y && apt-get upgrade -y && apt-get install unzip -y " ))
22
22
})
23
23
}]
24
24
}
Original file line number Diff line number Diff line change @@ -7,3 +7,11 @@ output "public_ip_prefix" {
7
7
value = module. vmss . public_ips
8
8
description = " Public IP Address Prefix CIDR"
9
9
}
10
+
11
+ output "tls_key" {
12
+ value = {
13
+ public_key = tls_private_key.this.public_key_openssh
14
+ private_key = tls_private_key.this.private_key_openssh
15
+ }
16
+ description = " SSH Key for VMSS authorization"
17
+ }
You can’t perform that action at this time.
0 commit comments